// using InternetShopDatabase; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace InternetShopDatabase.Migrations { [DbContext(typeof(InternetShopDatabase))] partial class InternetShopDatabaseModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("InternetShopDatabase.Models.Order", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("CustomerEmail") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("CustomerFIO") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ImagePath") .IsRequired() .HasColumnType("nvarchar(max)"); b.PrimitiveCollection("ProductNames") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Orders"); }); modelBuilder.Entity("InternetShopDatabase.Models.Product", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Products"); }); #pragma warning restore 612, 618 } } }