139 lines
4.8 KiB
C#
139 lines
4.8 KiB
C#
// <auto-generated />
|
|
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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("CreateUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("UpdateUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Project", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IRaCIS.Core.Test.CodeFirstTest.MSSQL.ProjectUser", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("CreateUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<Guid>("ProjectId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("CreateUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("ProjectId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("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
|
|
}
|
|
}
|
|
}
|