Add EF-Migration for changing id on models from int to Guid
This commit is contained in:
@@ -24,11 +24,9 @@ namespace RazorPagesMovie.Migrations
|
||||
|
||||
modelBuilder.Entity("RazorPagesMovie.Models.AdminUser", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("PasswordHash")
|
||||
.IsRequired()
|
||||
@@ -46,11 +44,9 @@ namespace RazorPagesMovie.Migrations
|
||||
|
||||
modelBuilder.Entity("RazorPagesMovie.Models.ContactMessage", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
|
||||
Reference in New Issue
Block a user