// using System; using IRaCIS.Core.Test.CodeFirstTest.MSSQL; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace IRaCIS.Core.Test.CodeFirstTest.MSSQL.Migrations { [DbContext(typeof(IRCContext))] partial class IRCContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("IRaCIS.Core.Test.CodeFirstTest.MSSQL.Project", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasColumnType("uniqueidentifier"); b.Property("UpdateTime") .HasColumnType("datetime2"); b.Property("UpdateUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.ToTable("Project", (string)null); }); modelBuilder.Entity("IRaCIS.Core.Test.CodeFirstTest.MSSQL.ProjectUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasColumnType("uniqueidentifier"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ProjectId") .HasColumnType("uniqueidentifier"); b.Property("UpdateTime") .HasColumnType("datetime2"); b.Property("UpdateUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("ProjectId"); b.ToTable("ProjectUser", (string)null); }); modelBuilder.Entity("IRaCIS.Core.Test.CodeFirstTest.MSSQL.ProjectUser2", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasColumnType("uniqueidentifier"); b.Property("ProjectId") .HasColumnType("uniqueidentifier"); b.Property("UpdateTime") .HasColumnType("datetime2"); b.Property("UpdateUserId") .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("ProjectId"); b.ToTable("ProjectUser2", (string)null); }); modelBuilder.Entity("IRaCIS.Core.Test.CodeFirstTest.MSSQL.ProjectUser", b => { b.HasOne("IRaCIS.Core.Test.CodeFirstTest.MSSQL.Project", "Project") .WithMany() .HasForeignKey("ProjectId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Project"); }); modelBuilder.Entity("IRaCIS.Core.Test.CodeFirstTest.MSSQL.ProjectUser2", b => { b.HasOne("IRaCIS.Core.Test.CodeFirstTest.MSSQL.Project", "Project") .WithMany() .HasForeignKey("ProjectId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Project"); }); #pragma warning restore 612, 618 } } }