diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180530161822_Create_Project.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180530161822_Create_Project.Designer.cs deleted file mode 100644 index 93e5e0ddba..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180530161822_Create_Project.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Metadata.Internal; -using Microsoft.EntityFrameworkCore.Migrations; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20180530161822_Create_Project")] - partial class Create_Project - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.0-preview2-30571") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180530161822_Create_Project.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180530161822_Create_Project.cs deleted file mode 100644 index 745f513108..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180530161822_Create_Project.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Create_Project : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "DocsProjects", - columns: table => new - { - Id = table.Column(nullable: false), - Name = table.Column(maxLength: 128, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_DocsProjects", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531111707_Added_ShortName_And_DocumentStoreType_To_Project.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531111707_Added_ShortName_And_DocumentStoreType_To_Project.Designer.cs deleted file mode 100644 index 496c6f52d1..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531111707_Added_ShortName_And_DocumentStoreType_To_Project.Designer.cs +++ /dev/null @@ -1,45 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Metadata.Internal; -using Microsoft.EntityFrameworkCore.Migrations; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20180531111707_Added_ShortName_And_DocumentStoreType_To_Project")] - partial class Added_ShortName_And_DocumentStoreType_To_Project - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.0-preview2-30571") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DocumentStoreType"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531111707_Added_ShortName_And_DocumentStoreType_To_Project.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531111707_Added_ShortName_And_DocumentStoreType_To_Project.cs deleted file mode 100644 index ae15dcc969..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531111707_Added_ShortName_And_DocumentStoreType_To_Project.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Added_ShortName_And_DocumentStoreType_To_Project : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "DocumentStoreType", - table: "DocsProjects", - nullable: true); - - migrationBuilder.AddColumn( - name: "ShortName", - table: "DocsProjects", - maxLength: 32, - nullable: false, - defaultValue: ""); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "DocumentStoreType", - table: "DocsProjects"); - - migrationBuilder.DropColumn( - name: "ShortName", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531125653_Added_ExtraProperties_To_Project.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531125653_Added_ExtraProperties_To_Project.Designer.cs deleted file mode 100644 index b917f0818d..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531125653_Added_ExtraProperties_To_Project.Designer.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Metadata.Internal; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20180531125653_Added_ExtraProperties_To_Project")] - partial class Added_ExtraProperties_To_Project - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.0-preview2-30571") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531125653_Added_ExtraProperties_To_Project.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531125653_Added_ExtraProperties_To_Project.cs deleted file mode 100644 index 84b7f75fae..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531125653_Added_ExtraProperties_To_Project.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Added_ExtraProperties_To_Project : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ExtraProperties", - table: "DocsProjects", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ExtraProperties", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531130753_Added_DefaultDocumentName_To_Project.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531130753_Added_DefaultDocumentName_To_Project.Designer.cs deleted file mode 100644 index 12d21840db..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531130753_Added_DefaultDocumentName_To_Project.Designer.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Metadata.Internal; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20180531130753_Added_DefaultDocumentName_To_Project")] - partial class Added_DefaultDocumentName_To_Project - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.0-preview2-30571") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DefaultDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531130753_Added_DefaultDocumentName_To_Project.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531130753_Added_DefaultDocumentName_To_Project.cs deleted file mode 100644 index 3c07b53686..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531130753_Added_DefaultDocumentName_To_Project.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Added_DefaultDocumentName_To_Project : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "DefaultDocumentName", - table: "DocsProjects", - maxLength: 128, - nullable: false, - defaultValue: ""); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "DefaultDocumentName", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531134117_Added_NavigationDocumentName_To_Project.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531134117_Added_NavigationDocumentName_To_Project.Designer.cs deleted file mode 100644 index a24a2650b1..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531134117_Added_NavigationDocumentName_To_Project.Designer.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Metadata.Internal; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20180531134117_Added_NavigationDocumentName_To_Project")] - partial class Added_NavigationDocumentName_To_Project - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.0-preview2-30571") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DefaultDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("NavigationDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531134117_Added_NavigationDocumentName_To_Project.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531134117_Added_NavigationDocumentName_To_Project.cs deleted file mode 100644 index 1f632f5a82..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180531134117_Added_NavigationDocumentName_To_Project.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Added_NavigationDocumentName_To_Project : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "NavigationDocumentName", - table: "DocsProjects", - maxLength: 128, - nullable: false, - defaultValue: ""); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "NavigationDocumentName", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180601150905_Added_GoogleCustomSearchId_To_Project.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180601150905_Added_GoogleCustomSearchId_To_Project.Designer.cs deleted file mode 100644 index 83ec517f2d..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180601150905_Added_GoogleCustomSearchId_To_Project.Designer.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20180601150905_Added_GoogleCustomSearchId_To_Project")] - partial class Added_GoogleCustomSearchId_To_Project - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.0-rtm-30799") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DefaultDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("GoogleCustomSearchId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("NavigationDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180601150905_Added_GoogleCustomSearchId_To_Project.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180601150905_Added_GoogleCustomSearchId_To_Project.cs deleted file mode 100644 index 8ffcb80a5f..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180601150905_Added_GoogleCustomSearchId_To_Project.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Added_GoogleCustomSearchId_To_Project : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "GoogleCustomSearchId", - table: "DocsProjects", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "GoogleCustomSearchId", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180605212013_Added_Format_To_Project.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180605212013_Added_Format_To_Project.Designer.cs deleted file mode 100644 index 6469322509..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180605212013_Added_Format_To_Project.Designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20180605212013_Added_Format_To_Project")] - partial class Added_Format_To_Project - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.0-rtm-30799") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DefaultDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("Format"); - - b.Property("GoogleCustomSearchId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("NavigationDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180605212013_Added_Format_To_Project.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180605212013_Added_Format_To_Project.cs deleted file mode 100644 index d60c6407fa..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180605212013_Added_Format_To_Project.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Added_Format_To_Project : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Format", - table: "DocsProjects", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Format", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180925162715_Added_MainWebsiteUrl.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180925162715_Added_MainWebsiteUrl.Designer.cs deleted file mode 100644 index b633007f70..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180925162715_Added_MainWebsiteUrl.Designer.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20180925162715_Added_MainWebsiteUrl")] - partial class Added_MainWebsiteUrl - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.3-rtm-32065") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DefaultDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("Format"); - - b.Property("GoogleCustomSearchId"); - - b.Property("MainWebsiteUrl"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("NavigationDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180925162715_Added_MainWebsiteUrl.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180925162715_Added_MainWebsiteUrl.cs deleted file mode 100644 index 1923f5ae7a..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20180925162715_Added_MainWebsiteUrl.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Added_MainWebsiteUrl : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "MainWebsiteUrl", - table: "DocsProjects", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "MainWebsiteUrl", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181030125213_Added_Project_MinimumVersion.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181030125213_Added_Project_MinimumVersion.Designer.cs deleted file mode 100644 index 2a6665b2e5..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181030125213_Added_Project_MinimumVersion.Designer.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20181030125213_Added_Project_MinimumVersion")] - partial class Added_Project_MinimumVersion - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.4-rtm-31024") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DefaultDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("Format"); - - b.Property("GoogleCustomSearchId"); - - b.Property("LatestVersionBranchName") - .HasMaxLength(128); - - b.Property("MainWebsiteUrl"); - - b.Property("MinimumVersion"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("NavigationDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181030125213_Added_Project_MinimumVersion.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181030125213_Added_Project_MinimumVersion.cs deleted file mode 100644 index d369013fad..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181030125213_Added_Project_MinimumVersion.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Added_Project_MinimumVersion : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "LatestVersionBranchName", - table: "DocsProjects", - maxLength: 128, - nullable: true); - - migrationBuilder.AddColumn( - name: "MinimumVersion", - table: "DocsProjects", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "LatestVersionBranchName", - table: "DocsProjects"); - - migrationBuilder.DropColumn( - name: "MinimumVersion", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181205154143_Removed_GoogleCustomSearchId.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181205154143_Removed_GoogleCustomSearchId.Designer.cs deleted file mode 100644 index 5a94075bd6..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181205154143_Removed_GoogleCustomSearchId.Designer.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20181205154143_Removed_GoogleCustomSearchId")] - partial class Removed_GoogleCustomSearchId - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.1-rtm-30846") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DefaultDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("Format"); - - b.Property("LatestVersionBranchName") - .HasMaxLength(128); - - b.Property("MainWebsiteUrl"); - - b.Property("MinimumVersion"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("NavigationDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181205154143_Removed_GoogleCustomSearchId.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181205154143_Removed_GoogleCustomSearchId.cs deleted file mode 100644 index 577b28bda1..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181205154143_Removed_GoogleCustomSearchId.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class Removed_GoogleCustomSearchId : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "GoogleCustomSearchId", - table: "DocsProjects"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "GoogleCustomSearchId", - table: "DocsProjects", - nullable: true); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181211141818_AggregateRoot_Changes.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181211141818_AggregateRoot_Changes.Designer.cs deleted file mode 100644 index 3465acc006..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181211141818_AggregateRoot_Changes.Designer.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.DocsTestApp.EntityFrameworkCore; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20181211141818_AggregateRoot_Changes")] - partial class AggregateRoot_Changes - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.1-rtm-30846") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Docs.Projects.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ConcurrencyStamp"); - - b.Property("DefaultDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("DocumentStoreType"); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties"); - - b.Property("Format"); - - b.Property("LatestVersionBranchName") - .HasMaxLength(128); - - b.Property("MainWebsiteUrl"); - - b.Property("MinimumVersion"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("NavigationDocumentName") - .IsRequired() - .HasMaxLength(128); - - b.Property("ShortName") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("DocsProjects"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181211141818_AggregateRoot_Changes.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181211141818_AggregateRoot_Changes.cs deleted file mode 100644 index cfc39411b1..0000000000 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181211141818_AggregateRoot_Changes.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations -{ - public partial class AggregateRoot_Changes : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ConcurrencyStamp", - table: "DocsProjects", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ConcurrencyStamp", - table: "DocsProjects"); - } - } -} diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225063242_Added_Identity.Designer.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225134002_Initial20181225.Designer.cs similarity index 93% rename from modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225063242_Added_Identity.Designer.cs rename to modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225134002_Initial20181225.Designer.cs index 8a4137a48f..cfa52c4ddc 100644 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225063242_Added_Identity.Designer.cs +++ b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225134002_Initial20181225.Designer.cs @@ -10,8 +10,8 @@ using Volo.DocsTestApp.EntityFrameworkCore; namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations { [DbContext(typeof(DocsTestAppDbContext))] - [Migration("20181225063242_Added_Identity")] - partial class Added_Identity + [Migration("20181225134002_Initial20181225")] + partial class Initial20181225 { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -134,17 +134,19 @@ namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .IsRequired() - .HasColumnName("ConcurrencyStamp") - .HasMaxLength(256); + .HasColumnName("ConcurrencyStamp"); - b.Property("CreationTime"); + b.Property("CreationTime") + .HasColumnName("CreationTime"); - b.Property("CreatorId"); + b.Property("CreatorId") + .HasColumnName("CreatorId"); - b.Property("DeleterId"); + b.Property("DeleterId") + .HasColumnName("DeleterId"); - b.Property("DeletionTime"); + b.Property("DeletionTime") + .HasColumnName("DeletionTime"); b.Property("Email") .HasColumnName("Email") @@ -158,11 +160,16 @@ namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations b.Property("ExtraProperties") .HasColumnName("ExtraProperties"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnName("IsDeleted") + .HasDefaultValue(false); - b.Property("LastModificationTime"); + b.Property("LastModificationTime") + .HasColumnName("LastModificationTime"); - b.Property("LastModifierId"); + b.Property("LastModifierId") + .HasColumnName("LastModifierId"); b.Property("LockoutEnabled") .ValueGeneratedOnAdd() diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225063242_Added_Identity.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225134002_Initial20181225.cs similarity index 90% rename from modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225063242_Added_Identity.cs rename to modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225134002_Initial20181225.cs index 59e3de3d39..5675fc708e 100644 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225063242_Added_Identity.cs +++ b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/20181225134002_Initial20181225.cs @@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations; namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations { - public partial class Added_Identity : Migration + public partial class Initial20181225 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { @@ -82,12 +82,12 @@ namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations { Id = table.Column(nullable: false), ExtraProperties = table.Column(nullable: true), - ConcurrencyStamp = table.Column(maxLength: 256, nullable: false), + ConcurrencyStamp = table.Column(nullable: true), CreationTime = table.Column(nullable: false), CreatorId = table.Column(nullable: true), LastModificationTime = table.Column(nullable: true), LastModifierId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), + IsDeleted = table.Column(nullable: false, defaultValue: false), DeleterId = table.Column(nullable: true), DeletionTime = table.Column(nullable: true), TenantId = table.Column(nullable: true), @@ -112,6 +112,28 @@ namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations table.PrimaryKey("PK_AbpUsers", x => x.Id); }); + migrationBuilder.CreateTable( + name: "DocsProjects", + columns: table => new + { + Id = table.Column(nullable: false), + ExtraProperties = table.Column(nullable: true), + ConcurrencyStamp = table.Column(nullable: true), + Name = table.Column(maxLength: 128, nullable: false), + ShortName = table.Column(maxLength: 32, nullable: false), + Format = table.Column(nullable: true), + DefaultDocumentName = table.Column(maxLength: 128, nullable: false), + NavigationDocumentName = table.Column(maxLength: 128, nullable: false), + MinimumVersion = table.Column(nullable: true), + DocumentStoreType = table.Column(nullable: true), + MainWebsiteUrl = table.Column(nullable: true), + LatestVersionBranchName = table.Column(maxLength: 128, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_DocsProjects", x => x.Id); + }); + migrationBuilder.CreateTable( name: "AbpRoleClaims", columns: table => new @@ -303,6 +325,9 @@ namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations migrationBuilder.DropTable( name: "AbpUserTokens"); + migrationBuilder.DropTable( + name: "DocsProjects"); + migrationBuilder.DropTable( name: "AbpRoles"); diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/DocsTestAppDbContextModelSnapshot.cs b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/DocsTestAppDbContextModelSnapshot.cs index b1ee9d3e2f..0037d0cf90 100644 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/DocsTestAppDbContextModelSnapshot.cs +++ b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Migrations/DocsTestAppDbContextModelSnapshot.cs @@ -132,17 +132,19 @@ namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .IsRequired() - .HasColumnName("ConcurrencyStamp") - .HasMaxLength(256); + .HasColumnName("ConcurrencyStamp"); - b.Property("CreationTime"); + b.Property("CreationTime") + .HasColumnName("CreationTime"); - b.Property("CreatorId"); + b.Property("CreatorId") + .HasColumnName("CreatorId"); - b.Property("DeleterId"); + b.Property("DeleterId") + .HasColumnName("DeleterId"); - b.Property("DeletionTime"); + b.Property("DeletionTime") + .HasColumnName("DeletionTime"); b.Property("Email") .HasColumnName("Email") @@ -156,11 +158,16 @@ namespace Volo.DocsTestApp.EntityFrameworkCore.Migrations b.Property("ExtraProperties") .HasColumnName("ExtraProperties"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnName("IsDeleted") + .HasDefaultValue(false); - b.Property("LastModificationTime"); + b.Property("LastModificationTime") + .HasColumnName("LastModificationTime"); - b.Property("LastModifierId"); + b.Property("LastModifierId") + .HasColumnName("LastModifierId"); b.Property("LockoutEnabled") .ValueGeneratedOnAdd() diff --git a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Volo.DocsTestApp.EntityFrameworkCore.csproj b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Volo.DocsTestApp.EntityFrameworkCore.csproj index b458a273e0..83d1523df9 100644 --- a/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Volo.DocsTestApp.EntityFrameworkCore.csproj +++ b/modules/docs/app/Volo.DocsTestApp.EntityFrameworkCore/Volo.DocsTestApp.EntityFrameworkCore.csproj @@ -4,10 +4,6 @@ netstandard2.0 - - - - diff --git a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs index 27727da177..ce8e1e47d5 100644 --- a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs +++ b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs @@ -22,15 +22,15 @@ namespace Volo.Abp.Identity.EntityFrameworkCore { b.ToTable(options.TablePrefix + "Users", options.Schema); - b.ConfigureAbpUser(options); - + b.ConfigureFullAudited(); b.ConfigureExtraProperties(); + b.ConfigureConcurrencyStamp(); + b.ConfigureAbpUser(options); b.Property(u => u.NormalizedUserName).IsRequired().HasMaxLength(IdentityUserConsts.MaxNormalizedUserNameLength).HasColumnName(nameof(IdentityUser.NormalizedUserName)); b.Property(u => u.NormalizedEmail).HasMaxLength(IdentityUserConsts.MaxNormalizedEmailLength).HasColumnName(nameof(IdentityUser.NormalizedEmail)); b.Property(u => u.PasswordHash).HasMaxLength(IdentityUserConsts.MaxPasswordHashLength).HasColumnName(nameof(IdentityUser.PasswordHash)); b.Property(u => u.SecurityStamp).IsRequired().HasMaxLength(IdentityUserConsts.MaxSecurityStampLength).HasColumnName(nameof(IdentityUser.SecurityStamp)); - b.Property(u => u.ConcurrencyStamp).IsRequired().IsConcurrencyToken().HasMaxLength(IdentityUserConsts.MaxConcurrencyStampLength).HasColumnName(nameof(IdentityUser.ConcurrencyStamp)); b.Property(u => u.TwoFactorEnabled).HasDefaultValue(false).HasColumnName(nameof(IdentityUser.TwoFactorEnabled)); b.Property(u => u.LockoutEnabled).HasDefaultValue(false).HasColumnName(nameof(IdentityUser.LockoutEnabled)); b.Property(u => u.AccessFailedCount).HasDefaultValue(0).HasColumnName(nameof(IdentityUser.AccessFailedCount)); @@ -95,6 +95,7 @@ namespace Volo.Abp.Identity.EntityFrameworkCore { b.ToTable(options.TablePrefix + "Roles", options.Schema); + b.ConfigureConcurrencyStamp(); b.ConfigureExtraProperties(); b.Property(r => r.Name).IsRequired().HasMaxLength(IdentityRoleConsts.MaxNameLength); diff --git a/modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/AbpIdentityBsonClassMap.cs b/modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/AbpIdentityBsonClassMap.cs index 6bd6ff8623..d55ad6ee41 100644 --- a/modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/AbpIdentityBsonClassMap.cs +++ b/modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/AbpIdentityBsonClassMap.cs @@ -27,6 +27,7 @@ namespace Volo.Abp.Identity.MongoDB BsonClassMap.RegisterClassMap(map => { map.AutoMap(); + map.ConfigureExtraProperties(); }); }); }