Created
August 8, 2021 08:44
-
-
Save executeautomation/a8c042d39617c25dd2c1fa5b3deff962 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MiniDemo.Migrations | |
{ | |
[DbContext(typeof(EmployeeDbContext))] | |
[Migration("20210725025828_initialDb")] | |
partial class initialDb | |
{ | |
protected override void BuildTargetModel(ModelBuilder modelBuilder) | |
{ | |
#pragma warning disable 612, 618 | |
modelBuilder | |
.HasAnnotation("Relational:MaxIdentifierLength", 128) | |
.HasAnnotation("ProductVersion", "5.0.8") | |
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); | |
modelBuilder.Entity("MiniDemo.Model.Employee", b => | |
{ | |
b.Property<string>("EmployeeId") | |
.HasColumnType("nvarchar(450)"); | |
b.Property<string>("Citizenship") | |
.HasColumnType("nvarchar(max)"); | |
b.Property<string>("Name") | |
.HasColumnType("nvarchar(max)"); | |
b.HasKey("EmployeeId"); | |
b.ToTable("Employee"); | |
}); | |
#pragma warning restore 612, 618 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment