You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.8 KiB
95 lines
2.8 KiB
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using WebAPIWithEF.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace WebAPIWithEF.Migrations
|
|
{
|
|
[DbContext(typeof(PizzaContext))]
|
|
partial class PizzaContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.6");
|
|
|
|
modelBuilder.Entity("WebAPIWithEF.Models.Pizza", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("SauceId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SauceId");
|
|
|
|
b.ToTable("Pizzas");
|
|
});
|
|
|
|
modelBuilder.Entity("WebAPIWithEF.Models.Sauce", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Sauces");
|
|
});
|
|
|
|
modelBuilder.Entity("WebAPIWithEF.Models.Topping", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("PizzaId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PizzaId");
|
|
|
|
b.ToTable("Toppings");
|
|
});
|
|
|
|
modelBuilder.Entity("WebAPIWithEF.Models.Pizza", b =>
|
|
{
|
|
b.HasOne("WebAPIWithEF.Models.Sauce", "Sauce")
|
|
.WithMany()
|
|
.HasForeignKey("SauceId");
|
|
|
|
b.Navigation("Sauce");
|
|
});
|
|
|
|
modelBuilder.Entity("WebAPIWithEF.Models.Topping", b =>
|
|
{
|
|
b.HasOne("WebAPIWithEF.Models.Pizza", null)
|
|
.WithMany("Toppings")
|
|
.HasForeignKey("PizzaId");
|
|
});
|
|
|
|
modelBuilder.Entity("WebAPIWithEF.Models.Pizza", b =>
|
|
{
|
|
b.Navigation("Toppings");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|
|
|