// using ContosoPizza.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace ContosoPizza.Migrations { [DbContext(typeof(PizzaContext))] [Migration("20230501213855_InitialCreate")] partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "7.0.5"); modelBuilder.Entity("ContosoPizza.Models.Pizza", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("IsGlutenFree") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.Property("Price") .HasColumnType("TEXT"); b.Property("Size") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("Pizzas"); }); #pragma warning restore 612, 618 } } }