// using System; using Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace Web.Migrations { [DbContext(typeof(SurveyContext))] partial class SurveyContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.2") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("Model.Address", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("CVR") .HasColumnType("nvarchar(max)"); b.Property("City") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Country") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Email") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Mobile") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("PostalCode") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("nvarchar(max)"); b.Property("Street") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Addresss"); }); modelBuilder.Entity("Model.Banner", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Content") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Description") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ImageUrl") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("LinkUrl") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Title") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Banners"); }); modelBuilder.Entity("Model.Footer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Content") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("CreatedBy") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ImageUlr") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("LastUpdated") .HasColumnType("datetime2"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Owner") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Sitecopyright") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Title") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("UpdatedBy") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Footers"); }); modelBuilder.Entity("Model.Page", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("BannerId") .HasColumnType("int"); b.Property("Content") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Slug") .HasColumnType("nvarchar(max)"); b.Property("Title") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BannerId"); b.ToTable("Pages"); }); modelBuilder.Entity("Model.Page", b => { b.HasOne("Model.Banner", "banner") .WithMany() .HasForeignKey("BannerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("banner"); }); #pragma warning restore 612, 618 } } }