|
@@ -4,28 +4,26 @@ using IdentitySample.DefaultUI.Data;
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
-using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
-using Microsoft.EntityFrameworkCore.Storage;
|
|
|
|
|
-using Microsoft.EntityFrameworkCore.Storage.Internal;
|
|
|
|
|
|
|
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
|
|
namespace IdentitySample.DefaultUI.Data.Migrations
|
|
namespace IdentitySample.DefaultUI.Data.Migrations
|
|
|
{
|
|
{
|
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
|
- [Migration("20180126174859_CreateIdentitySchema")]
|
|
|
|
|
|
|
+ [Migration("20190411154115_CreateIdentitySchema")]
|
|
|
partial class CreateIdentitySchema
|
|
partial class CreateIdentitySchema
|
|
|
{
|
|
{
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
{
|
|
{
|
|
|
#pragma warning disable 612, 618
|
|
#pragma warning disable 612, 618
|
|
|
modelBuilder
|
|
modelBuilder
|
|
|
- .HasAnnotation("ProductVersion", "2.1.0-preview1-28153")
|
|
|
|
|
|
|
+ .HasAnnotation("ProductVersion", "3.0.0-preview5.19209.2")
|
|
|
|
|
+ .HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
|
|
modelBuilder.Entity("IdentitySample.DefaultUI.Data.ApplicationUser", b =>
|
|
modelBuilder.Entity("IdentitySample.DefaultUI.Data.ApplicationUser", b =>
|
|
|
{
|
|
{
|
|
|
- b.Property<string>("Id")
|
|
|
|
|
- .ValueGeneratedOnAdd();
|
|
|
|
|
|
|
+ b.Property<string>("Id");
|
|
|
|
|
|
|
|
b.Property<int>("AccessFailedCount");
|
|
b.Property<int>("AccessFailedCount");
|
|
|
|
|
|
|
@@ -79,8 +77,7 @@ namespace IdentitySample.DefaultUI.Data.Migrations
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
|
{
|
|
{
|
|
|
- b.Property<string>("Id")
|
|
|
|
|
- .ValueGeneratedOnAdd();
|
|
|
|
|
|
|
+ b.Property<string>("Id");
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
.IsConcurrencyToken();
|
|
.IsConcurrencyToken();
|
|
@@ -104,7 +101,8 @@ namespace IdentitySample.DefaultUI.Data.Migrations
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
|
{
|
|
{
|
|
|
b.Property<int>("Id")
|
|
b.Property<int>("Id")
|
|
|
- .ValueGeneratedOnAdd();
|
|
|
|
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
|
|
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType");
|
|
b.Property<string>("ClaimType");
|
|
|
|
|
|
|
@@ -123,7 +121,8 @@ namespace IdentitySample.DefaultUI.Data.Migrations
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
|
{
|
|
{
|
|
|
b.Property<int>("Id")
|
|
b.Property<int>("Id")
|
|
|
- .ValueGeneratedOnAdd();
|
|
|
|
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
|
|
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType");
|
|
b.Property<string>("ClaimType");
|
|
|
|
|
|
|
@@ -191,47 +190,53 @@ namespace IdentitySample.DefaultUI.Data.Migrations
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
|
{
|
|
{
|
|
|
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
|
|
|
|
|
|
|
+ b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey("RoleId")
|
|
.HasForeignKey("RoleId")
|
|
|
- .OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
+ .IsRequired();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
|
{
|
|
{
|
|
|
- b.HasOne("IdentitySample.DefaultUI.Data.ApplicationUser")
|
|
|
|
|
|
|
+ b.HasOne("IdentitySample.DefaultUI.Data.ApplicationUser", null)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey("UserId")
|
|
.HasForeignKey("UserId")
|
|
|
- .OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
+ .IsRequired();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
|
{
|
|
{
|
|
|
- b.HasOne("IdentitySample.DefaultUI.Data.ApplicationUser")
|
|
|
|
|
|
|
+ b.HasOne("IdentitySample.DefaultUI.Data.ApplicationUser", null)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey("UserId")
|
|
.HasForeignKey("UserId")
|
|
|
- .OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
+ .IsRequired();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
|
{
|
|
{
|
|
|
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
|
|
|
|
|
|
|
+ b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey("RoleId")
|
|
.HasForeignKey("RoleId")
|
|
|
- .OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
+ .IsRequired();
|
|
|
|
|
|
|
|
- b.HasOne("IdentitySample.DefaultUI.Data.ApplicationUser")
|
|
|
|
|
|
|
+ b.HasOne("IdentitySample.DefaultUI.Data.ApplicationUser", null)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey("UserId")
|
|
.HasForeignKey("UserId")
|
|
|
- .OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
+ .IsRequired();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
|
{
|
|
{
|
|
|
- b.HasOne("IdentitySample.DefaultUI.Data.ApplicationUser")
|
|
|
|
|
|
|
+ b.HasOne("IdentitySample.DefaultUI.Data.ApplicationUser", null)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey("UserId")
|
|
.HasForeignKey("UserId")
|
|
|
- .OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
+ .IsRequired();
|
|
|
});
|
|
});
|
|
|
#pragma warning restore 612, 618
|
|
#pragma warning restore 612, 618
|
|
|
}
|
|
}
|