diff --git a/common.props b/common.props
index 1528abbcc6..1e69d68aa2 100644
--- a/common.props
+++ b/common.props
@@ -9,8 +9,15 @@
git
https://github.com/abpframework/abp/
true
+
+
+ true
+ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
-
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
\ No newline at end of file
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/ProjectNugetPackageAdder.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/ProjectNugetPackageAdder.cs
index de25b11da7..ee736f3aa0 100644
--- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/ProjectNugetPackageAdder.cs
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/ProjectNugetPackageAdder.cs
@@ -7,6 +7,8 @@ using System.Threading.Tasks;
using System.Xml;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
+using Volo.Abp.Cli.Args;
+using Volo.Abp.Cli.Commands;
using Volo.Abp.Cli.Http;
using Volo.Abp.Cli.ProjectBuilding;
using Volo.Abp.Cli.Utils;
@@ -25,19 +27,22 @@ namespace Volo.Abp.Cli.ProjectModification
protected DerivedClassFinder ModuleClassFinder { get; }
protected ModuleClassDependcyAdder ModuleClassDependcyAdder { get; }
protected IRemoteServiceExceptionHandler RemoteServiceExceptionHandler { get; }
+ public BundleCommand BundleCommand { get; }
public ProjectNugetPackageAdder(
IJsonSerializer jsonSerializer,
ProjectNpmPackageAdder npmPackageAdder,
DerivedClassFinder moduleClassFinder,
ModuleClassDependcyAdder moduleClassDependcyAdder,
- IRemoteServiceExceptionHandler remoteServiceExceptionHandler)
+ IRemoteServiceExceptionHandler remoteServiceExceptionHandler,
+ BundleCommand bundleCommand)
{
JsonSerializer = jsonSerializer;
NpmPackageAdder = npmPackageAdder;
ModuleClassFinder = moduleClassFinder;
ModuleClassDependcyAdder = moduleClassDependcyAdder;
RemoteServiceExceptionHandler = remoteServiceExceptionHandler;
+ BundleCommand = bundleCommand;
Logger = NullLogger.Instance;
}
@@ -50,14 +55,14 @@ namespace Volo.Abp.Cli.ProjectModification
);
}
- public Task AddAsync(string projectFile, NugetPackageInfo package, string version = null,
+ public async Task AddAsync(string projectFile, NugetPackageInfo package, string version = null,
bool useDotnetCliToInstall = true)
{
var projectFileContent = File.ReadAllText(projectFile);
if (projectFileContent.Contains($"\"{package.Name}\""))
{
- return Task.CompletedTask;
+ return;
}
if (version == null)
@@ -94,11 +99,14 @@ namespace Volo.Abp.Cli.ProjectModification
}
ModuleClassDependcyAdder.Add(moduleFiles.First(), package.ModuleClass);
+ }
- Logger.LogInformation("Successfully installed.");
+ if (package.Target == NuGetPackageTarget.Blazor)
+ {
+ await RunBundleForBlazorAsync(projectFile);
}
- return Task.CompletedTask;
+ Logger.LogInformation("Successfully installed.");
}
private Task AddUsingDotnetCli(NugetPackageInfo package, string version = null)
@@ -185,5 +193,15 @@ namespace Volo.Abp.Cli.ProjectModification
return JsonSerializer.Deserialize(responseContent);
}
}
+
+ protected virtual async Task RunBundleForBlazorAsync(string projectFile)
+ {
+ var args = new CommandLineArgs("bundle");
+
+ args.Options.Add(BundleCommand.Options.WorkingDirectory.Short, Path.GetDirectoryName(projectFile));
+ args.Options.Add(BundleCommand.Options.ForceBuild.Short, string.Empty);
+
+ await BundleCommand.ExecuteAsync(args);
+ }
}
}
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs
index b19deb7b2e..dc13511896 100644
--- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs
@@ -7,6 +7,7 @@ using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Volo.Abp.Cli.Args;
+using Volo.Abp.Cli.Bundling;
using Volo.Abp.Cli.Commands;
using Volo.Abp.Cli.Commands.Services;
using Volo.Abp.Cli.Http;
@@ -35,6 +36,7 @@ namespace Volo.Abp.Cli.ProjectModification
public NugetPackageToLocalReferenceConverter NugetPackageToLocalReferenceConverter { get; }
public AngularModuleSourceCodeAdder AngularModuleSourceCodeAdder { get; }
public NewCommand NewCommand { get; }
+ public BundleCommand BundleCommand { get; }
public SolutionModuleAdder(
IJsonSerializer jsonSerializer,
@@ -49,7 +51,8 @@ namespace Volo.Abp.Cli.ProjectModification
SolutionFileModifier solutionFileModifier,
NugetPackageToLocalReferenceConverter nugetPackageToLocalReferenceConverter,
AngularModuleSourceCodeAdder angularModuleSourceCodeAdder,
- NewCommand newCommand)
+ NewCommand newCommand,
+ BundleCommand bundleCommand)
{
JsonSerializer = jsonSerializer;
ProjectNugetPackageAdder = projectNugetPackageAdder;
@@ -64,6 +67,7 @@ namespace Volo.Abp.Cli.ProjectModification
NugetPackageToLocalReferenceConverter = nugetPackageToLocalReferenceConverter;
AngularModuleSourceCodeAdder = angularModuleSourceCodeAdder;
NewCommand = newCommand;
+ BundleCommand = bundleCommand;
Logger = NullLogger.Instance;
}
@@ -118,9 +122,28 @@ namespace Volo.Abp.Cli.ProjectModification
await AddAngularPackages(solutionFile, module);
}
+ await RunBundleForBlazorAsync(projectFiles, module);
+
ModifyDbContext(projectFiles, module, startupProject, skipDbMigrations);
}
+ private async Task RunBundleForBlazorAsync(string[] projectFiles, ModuleWithMastersInfo module)
+ {
+ var blazorProject = projectFiles.FirstOrDefault(f => f.EndsWith(".Blazor.csproj"));
+
+ if (blazorProject == null || !module.NugetPackages.Any(np=> np.Target == NuGetPackageTarget.Blazor))
+ {
+ return;
+ }
+
+ var args = new CommandLineArgs("bundle");
+
+ args.Options.Add(BundleCommand.Options.WorkingDirectory.Short, Path.GetDirectoryName(blazorProject));
+ args.Options.Add(BundleCommand.Options.ForceBuild.Short, string.Empty);
+
+ await BundleCommand.ExecuteAsync(args);
+ }
+
private async Task RemoveUnnecessaryProjectsAsync(string solutionDirectory, ModuleWithMastersInfo module,
string[] projectFiles)
{
diff --git a/modules/cms-kit/common.props b/modules/cms-kit/common.props
deleted file mode 100644
index 420d9c492c..0000000000
--- a/modules/cms-kit/common.props
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
- latest
- 0.1.0
- $(NoWarn);CS1591;CS0436
- module
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/cms-kit/host/Volo.CmsKit.Host.Shared/Volo.CmsKit.Host.Shared.csproj b/modules/cms-kit/host/Volo.CmsKit.Host.Shared/Volo.CmsKit.Host.Shared.csproj
index c6a4484865..aca54af174 100644
--- a/modules/cms-kit/host/Volo.CmsKit.Host.Shared/Volo.CmsKit.Host.Shared.csproj
+++ b/modules/cms-kit/host/Volo.CmsKit.Host.Shared/Volo.CmsKit.Host.Shared.csproj
@@ -1,7 +1,5 @@
-
-
netstandard2.0
Volo.CmsKit
diff --git a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Volo.CmsKit.HttpApi.Host.csproj b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Volo.CmsKit.HttpApi.Host.csproj
index ed25471452..688c47bc87 100644
--- a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Volo.CmsKit.HttpApi.Host.csproj
+++ b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Volo.CmsKit.HttpApi.Host.csproj
@@ -1,7 +1,5 @@
-
-
net5.0
Volo.CmsKit
diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Host/Volo.CmsKit.Web.Host.csproj b/modules/cms-kit/host/Volo.CmsKit.Web.Host/Volo.CmsKit.Web.Host.csproj
index 8b10049893..266590c86b 100644
--- a/modules/cms-kit/host/Volo.CmsKit.Web.Host/Volo.CmsKit.Web.Host.csproj
+++ b/modules/cms-kit/host/Volo.CmsKit.Web.Host/Volo.CmsKit.Web.Host.csproj
@@ -1,7 +1,5 @@
-
-
net5.0
Volo.CmsKit
diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/CmsKitWebUnifiedModule.cs b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/CmsKitWebUnifiedModule.cs
index 483d54d9d5..2055266d20 100644
--- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/CmsKitWebUnifiedModule.cs
+++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/CmsKitWebUnifiedModule.cs
@@ -18,6 +18,7 @@ using Volo.Abp.Autofac;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer;
+using Volo.Abp.FeatureManagement.EntityFrameworkCore;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Identity;
using Volo.Abp.Identity.EntityFrameworkCore;
@@ -56,6 +57,8 @@ namespace Volo.CmsKit
typeof(AbpIdentityEntityFrameworkCoreModule),
typeof(AbpPermissionManagementDomainIdentityModule),
typeof(AbpFeatureManagementApplicationModule),
+ typeof(AbpFeatureManagementEntityFrameworkCoreModule),
+ typeof(AbpFeatureManagementWebModule),
typeof(AbpTenantManagementWebModule),
typeof(AbpTenantManagementApplicationModule),
typeof(AbpTenantManagementEntityFrameworkCoreModule),
diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/EntityFrameworkCore/UnifiedDbContext.cs b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/EntityFrameworkCore/UnifiedDbContext.cs
index 5eade47bd7..d1b31e0ae7 100644
--- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/EntityFrameworkCore/UnifiedDbContext.cs
+++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/EntityFrameworkCore/UnifiedDbContext.cs
@@ -1,6 +1,7 @@
using Microsoft.EntityFrameworkCore;
using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
+using Volo.Abp.FeatureManagement.EntityFrameworkCore;
using Volo.Abp.Identity.EntityFrameworkCore;
using Volo.Abp.PermissionManagement.EntityFrameworkCore;
using Volo.Abp.SettingManagement.EntityFrameworkCore;
@@ -25,6 +26,7 @@ namespace Volo.CmsKit.EntityFrameworkCore
modelBuilder.ConfigureAuditLogging();
modelBuilder.ConfigureIdentity();
modelBuilder.ConfigureTenantManagement();
+ modelBuilder.ConfigureFeatureManagement();
modelBuilder.ConfigureCmsKit();
}
}
diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201013061938_Initial.cs b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201013061938_Initial.cs
deleted file mode 100644
index 73df34b298..0000000000
--- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201013061938_Initial.cs
+++ /dev/null
@@ -1,749 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace Volo.CmsKit.Migrations
-{
- public partial class Initial : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "AbpAuditLogs",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(maxLength: 40, nullable: true),
- ApplicationName = table.Column(maxLength: 96, nullable: true),
- UserId = table.Column(nullable: true),
- UserName = table.Column(maxLength: 256, nullable: true),
- TenantId = table.Column(nullable: true),
- TenantName = table.Column(nullable: true),
- ImpersonatorUserId = table.Column(nullable: true),
- ImpersonatorTenantId = table.Column(nullable: true),
- ExecutionTime = table.Column(nullable: false),
- ExecutionDuration = table.Column(nullable: false),
- ClientIpAddress = table.Column(maxLength: 64, nullable: true),
- ClientName = table.Column(maxLength: 128, nullable: true),
- ClientId = table.Column(maxLength: 64, nullable: true),
- CorrelationId = table.Column(maxLength: 64, nullable: true),
- BrowserInfo = table.Column(maxLength: 512, nullable: true),
- HttpMethod = table.Column(maxLength: 16, nullable: true),
- Url = table.Column(maxLength: 256, nullable: true),
- Exceptions = table.Column(maxLength: 4000, nullable: true),
- Comments = table.Column(maxLength: 256, nullable: true),
- HttpStatusCode = table.Column(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpAuditLogs", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpClaimTypes",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(maxLength: 40, nullable: true),
- Name = table.Column(maxLength: 256, nullable: false),
- Required = table.Column(nullable: false),
- IsStatic = table.Column(nullable: false),
- Regex = table.Column(maxLength: 512, nullable: true),
- RegexDescription = table.Column(maxLength: 128, nullable: true),
- Description = table.Column(maxLength: 256, nullable: true),
- ValueType = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpClaimTypes", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpOrganizationUnits",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(maxLength: 40, 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, defaultValue: false),
- DeleterId = table.Column(nullable: true),
- DeletionTime = table.Column(nullable: true),
- TenantId = table.Column(nullable: true),
- ParentId = table.Column(nullable: true),
- Code = table.Column(maxLength: 95, nullable: false),
- DisplayName = table.Column(maxLength: 128, nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id);
- table.ForeignKey(
- name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId",
- column: x => x.ParentId,
- principalTable: "AbpOrganizationUnits",
- principalColumn: "Id",
- onDelete: ReferentialAction.Restrict);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpPermissionGrants",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- Name = table.Column(maxLength: 128, nullable: false),
- ProviderName = table.Column(maxLength: 64, nullable: false),
- ProviderKey = table.Column(maxLength: 64, nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpRoles",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(maxLength: 40, nullable: true),
- TenantId = table.Column(nullable: true),
- Name = table.Column(maxLength: 256, nullable: false),
- NormalizedName = table.Column(maxLength: 256, nullable: false),
- IsDefault = table.Column(nullable: false),
- IsStatic = table.Column(nullable: false),
- IsPublic = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpRoles", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpSettings",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- Name = table.Column(maxLength: 128, nullable: false),
- Value = table.Column(maxLength: 2048, nullable: false),
- ProviderName = table.Column(maxLength: 64, nullable: true),
- ProviderKey = table.Column(maxLength: 64, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpSettings", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpTenants",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(maxLength: 40, 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, defaultValue: false),
- DeleterId = table.Column(nullable: true),
- DeletionTime = table.Column(nullable: true),
- Name = table.Column(maxLength: 64, nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpTenants", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpUsers",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(maxLength: 40, 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, defaultValue: false),
- DeleterId = table.Column(nullable: true),
- DeletionTime = table.Column(nullable: true),
- TenantId = table.Column(nullable: true),
- UserName = table.Column(maxLength: 256, nullable: false),
- NormalizedUserName = table.Column(maxLength: 256, nullable: false),
- Name = table.Column(maxLength: 64, nullable: true),
- Surname = table.Column(maxLength: 64, nullable: true),
- Email = table.Column(maxLength: 256, nullable: false),
- NormalizedEmail = table.Column(maxLength: 256, nullable: false),
- EmailConfirmed = table.Column(nullable: false, defaultValue: false),
- PasswordHash = table.Column(maxLength: 256, nullable: true),
- SecurityStamp = table.Column(maxLength: 256, nullable: false),
- PhoneNumber = table.Column(maxLength: 16, nullable: true),
- PhoneNumberConfirmed = table.Column(nullable: false, defaultValue: false),
- TwoFactorEnabled = table.Column(nullable: false, defaultValue: false),
- LockoutEnd = table.Column(nullable: true),
- LockoutEnabled = table.Column(nullable: false, defaultValue: false),
- AccessFailedCount = table.Column(nullable: false, defaultValue: 0)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpUsers", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "CmsComments",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- EntityType = table.Column(maxLength: 64, nullable: false),
- EntityId = table.Column(maxLength: 64, nullable: false),
- Text = table.Column(maxLength: 512, nullable: false),
- RepliedCommentId = table.Column(nullable: true),
- CreatorId = table.Column(nullable: false),
- CreationTime = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_CmsComments", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "CmsRatings",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- EntityType = table.Column(maxLength: 64, nullable: false),
- EntityId = table.Column(maxLength: 64, nullable: false),
- StarCount = table.Column(nullable: false),
- CreatorId = table.Column(nullable: false),
- CreationTime = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_CmsRatings", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "CmsUserReactions",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- EntityType = table.Column(maxLength: 64, nullable: false),
- EntityId = table.Column(maxLength: 64, nullable: false),
- ReactionName = table.Column(maxLength: 32, nullable: false),
- CreatorId = table.Column(nullable: false),
- CreationTime = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_CmsUserReactions", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "CmsUsers",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(maxLength: 40, nullable: true),
- TenantId = table.Column(nullable: true),
- UserName = table.Column(maxLength: 256, nullable: false),
- Email = table.Column(maxLength: 256, nullable: false),
- Name = table.Column(maxLength: 64, nullable: true),
- Surname = table.Column(maxLength: 64, nullable: true),
- EmailConfirmed = table.Column(nullable: false, defaultValue: false),
- PhoneNumber = table.Column(maxLength: 16, nullable: true),
- PhoneNumberConfirmed = table.Column(nullable: false, defaultValue: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_CmsUsers", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpAuditLogActions",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- AuditLogId = table.Column(nullable: false),
- ServiceName = table.Column(maxLength: 256, nullable: true),
- MethodName = table.Column(maxLength: 128, nullable: true),
- Parameters = table.Column(maxLength: 2000, nullable: true),
- ExecutionTime = table.Column(nullable: false),
- ExecutionDuration = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id);
- table.ForeignKey(
- name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId",
- column: x => x.AuditLogId,
- principalTable: "AbpAuditLogs",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpEntityChanges",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- AuditLogId = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- ChangeTime = table.Column(nullable: false),
- ChangeType = table.Column(nullable: false),
- EntityTenantId = table.Column(nullable: true),
- EntityId = table.Column(maxLength: 128, nullable: false),
- EntityTypeFullName = table.Column(maxLength: 128, nullable: false),
- ExtraProperties = table.Column(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpEntityChanges", x => x.Id);
- table.ForeignKey(
- name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId",
- column: x => x.AuditLogId,
- principalTable: "AbpAuditLogs",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpOrganizationUnitRoles",
- columns: table => new
- {
- RoleId = table.Column(nullable: false),
- OrganizationUnitId = table.Column(nullable: false),
- CreationTime = table.Column(nullable: false),
- CreatorId = table.Column(nullable: true),
- TenantId = table.Column(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId });
- table.ForeignKey(
- name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId",
- column: x => x.OrganizationUnitId,
- principalTable: "AbpOrganizationUnits",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- table.ForeignKey(
- name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId",
- column: x => x.RoleId,
- principalTable: "AbpRoles",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpRoleClaims",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- ClaimType = table.Column(maxLength: 256, nullable: false),
- ClaimValue = table.Column(maxLength: 1024, nullable: true),
- RoleId = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpRoleClaims", x => x.Id);
- table.ForeignKey(
- name: "FK_AbpRoleClaims_AbpRoles_RoleId",
- column: x => x.RoleId,
- principalTable: "AbpRoles",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpTenantConnectionStrings",
- columns: table => new
- {
- TenantId = table.Column(nullable: false),
- Name = table.Column(maxLength: 64, nullable: false),
- Value = table.Column(maxLength: 1024, nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name });
- table.ForeignKey(
- name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId",
- column: x => x.TenantId,
- principalTable: "AbpTenants",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpUserClaims",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- ClaimType = table.Column(maxLength: 256, nullable: false),
- ClaimValue = table.Column(maxLength: 1024, nullable: true),
- UserId = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpUserClaims", x => x.Id);
- table.ForeignKey(
- name: "FK_AbpUserClaims_AbpUsers_UserId",
- column: x => x.UserId,
- principalTable: "AbpUsers",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpUserLogins",
- columns: table => new
- {
- UserId = table.Column(nullable: false),
- LoginProvider = table.Column(maxLength: 64, nullable: false),
- TenantId = table.Column(nullable: true),
- ProviderKey = table.Column(maxLength: 196, nullable: false),
- ProviderDisplayName = table.Column(maxLength: 128, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider });
- table.ForeignKey(
- name: "FK_AbpUserLogins_AbpUsers_UserId",
- column: x => x.UserId,
- principalTable: "AbpUsers",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpUserOrganizationUnits",
- columns: table => new
- {
- UserId = table.Column(nullable: false),
- OrganizationUnitId = table.Column(nullable: false),
- CreationTime = table.Column(nullable: false),
- CreatorId = table.Column(nullable: true),
- TenantId = table.Column(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId });
- table.ForeignKey(
- name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId",
- column: x => x.OrganizationUnitId,
- principalTable: "AbpOrganizationUnits",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- table.ForeignKey(
- name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId",
- column: x => x.UserId,
- principalTable: "AbpUsers",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpUserRoles",
- columns: table => new
- {
- UserId = table.Column(nullable: false),
- RoleId = table.Column(nullable: false),
- TenantId = table.Column(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId });
- table.ForeignKey(
- name: "FK_AbpUserRoles_AbpRoles_RoleId",
- column: x => x.RoleId,
- principalTable: "AbpRoles",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- table.ForeignKey(
- name: "FK_AbpUserRoles_AbpUsers_UserId",
- column: x => x.UserId,
- principalTable: "AbpUsers",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpUserTokens",
- columns: table => new
- {
- UserId = table.Column(nullable: false),
- LoginProvider = table.Column(maxLength: 64, nullable: false),
- Name = table.Column(maxLength: 128, nullable: false),
- TenantId = table.Column(nullable: true),
- Value = table.Column(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name });
- table.ForeignKey(
- name: "FK_AbpUserTokens_AbpUsers_UserId",
- column: x => x.UserId,
- principalTable: "AbpUsers",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpEntityPropertyChanges",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- TenantId = table.Column(nullable: true),
- EntityChangeId = table.Column(nullable: false),
- NewValue = table.Column(maxLength: 512, nullable: true),
- OriginalValue = table.Column(maxLength: 512, nullable: true),
- PropertyName = table.Column(maxLength: 128, nullable: false),
- PropertyTypeFullName = table.Column(maxLength: 64, nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id);
- table.ForeignKey(
- name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId",
- column: x => x.EntityChangeId,
- principalTable: "AbpEntityChanges",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpAuditLogActions_AuditLogId",
- table: "AbpAuditLogActions",
- column: "AuditLogId");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime",
- table: "AbpAuditLogActions",
- columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpAuditLogs_TenantId_ExecutionTime",
- table: "AbpAuditLogs",
- columns: new[] { "TenantId", "ExecutionTime" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime",
- table: "AbpAuditLogs",
- columns: new[] { "TenantId", "UserId", "ExecutionTime" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpEntityChanges_AuditLogId",
- table: "AbpEntityChanges",
- column: "AuditLogId");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId",
- table: "AbpEntityChanges",
- columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpEntityPropertyChanges_EntityChangeId",
- table: "AbpEntityPropertyChanges",
- column: "EntityChangeId");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId",
- table: "AbpOrganizationUnitRoles",
- columns: new[] { "RoleId", "OrganizationUnitId" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpOrganizationUnits_Code",
- table: "AbpOrganizationUnits",
- column: "Code");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpOrganizationUnits_ParentId",
- table: "AbpOrganizationUnits",
- column: "ParentId");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey",
- table: "AbpPermissionGrants",
- columns: new[] { "Name", "ProviderName", "ProviderKey" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpRoleClaims_RoleId",
- table: "AbpRoleClaims",
- column: "RoleId");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpRoles_NormalizedName",
- table: "AbpRoles",
- column: "NormalizedName");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpSettings_Name_ProviderName_ProviderKey",
- table: "AbpSettings",
- columns: new[] { "Name", "ProviderName", "ProviderKey" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpTenants_Name",
- table: "AbpTenants",
- column: "Name");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpUserClaims_UserId",
- table: "AbpUserClaims",
- column: "UserId");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpUserLogins_LoginProvider_ProviderKey",
- table: "AbpUserLogins",
- columns: new[] { "LoginProvider", "ProviderKey" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId",
- table: "AbpUserOrganizationUnits",
- columns: new[] { "UserId", "OrganizationUnitId" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpUserRoles_RoleId_UserId",
- table: "AbpUserRoles",
- columns: new[] { "RoleId", "UserId" });
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpUsers_Email",
- table: "AbpUsers",
- column: "Email");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpUsers_NormalizedEmail",
- table: "AbpUsers",
- column: "NormalizedEmail");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpUsers_NormalizedUserName",
- table: "AbpUsers",
- column: "NormalizedUserName");
-
- migrationBuilder.CreateIndex(
- name: "IX_AbpUsers_UserName",
- table: "AbpUsers",
- column: "UserName");
-
- migrationBuilder.CreateIndex(
- name: "IX_CmsComments_TenantId_RepliedCommentId",
- table: "CmsComments",
- columns: new[] { "TenantId", "RepliedCommentId" });
-
- migrationBuilder.CreateIndex(
- name: "IX_CmsComments_TenantId_EntityType_EntityId",
- table: "CmsComments",
- columns: new[] { "TenantId", "EntityType", "EntityId" });
-
- migrationBuilder.CreateIndex(
- name: "IX_CmsRatings_TenantId_EntityType_EntityId_CreatorId",
- table: "CmsRatings",
- columns: new[] { "TenantId", "EntityType", "EntityId", "CreatorId" });
-
- migrationBuilder.CreateIndex(
- name: "IX_CmsUserReactions_TenantId_EntityType_EntityId_ReactionName",
- table: "CmsUserReactions",
- columns: new[] { "TenantId", "EntityType", "EntityId", "ReactionName" });
-
- migrationBuilder.CreateIndex(
- name: "IX_CmsUserReactions_TenantId_CreatorId_EntityType_EntityId_ReactionName",
- table: "CmsUserReactions",
- columns: new[] { "TenantId", "CreatorId", "EntityType", "EntityId", "ReactionName" });
-
- migrationBuilder.CreateIndex(
- name: "IX_CmsUsers_TenantId_Email",
- table: "CmsUsers",
- columns: new[] { "TenantId", "Email" });
-
- migrationBuilder.CreateIndex(
- name: "IX_CmsUsers_TenantId_UserName",
- table: "CmsUsers",
- columns: new[] { "TenantId", "UserName" });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "AbpAuditLogActions");
-
- migrationBuilder.DropTable(
- name: "AbpClaimTypes");
-
- migrationBuilder.DropTable(
- name: "AbpEntityPropertyChanges");
-
- migrationBuilder.DropTable(
- name: "AbpOrganizationUnitRoles");
-
- migrationBuilder.DropTable(
- name: "AbpPermissionGrants");
-
- migrationBuilder.DropTable(
- name: "AbpRoleClaims");
-
- migrationBuilder.DropTable(
- name: "AbpSettings");
-
- migrationBuilder.DropTable(
- name: "AbpTenantConnectionStrings");
-
- migrationBuilder.DropTable(
- name: "AbpUserClaims");
-
- migrationBuilder.DropTable(
- name: "AbpUserLogins");
-
- migrationBuilder.DropTable(
- name: "AbpUserOrganizationUnits");
-
- migrationBuilder.DropTable(
- name: "AbpUserRoles");
-
- migrationBuilder.DropTable(
- name: "AbpUserTokens");
-
- migrationBuilder.DropTable(
- name: "CmsComments");
-
- migrationBuilder.DropTable(
- name: "CmsRatings");
-
- migrationBuilder.DropTable(
- name: "CmsUserReactions");
-
- migrationBuilder.DropTable(
- name: "CmsUsers");
-
- migrationBuilder.DropTable(
- name: "AbpEntityChanges");
-
- migrationBuilder.DropTable(
- name: "AbpTenants");
-
- migrationBuilder.DropTable(
- name: "AbpOrganizationUnits");
-
- migrationBuilder.DropTable(
- name: "AbpRoles");
-
- migrationBuilder.DropTable(
- name: "AbpUsers");
-
- migrationBuilder.DropTable(
- name: "AbpAuditLogs");
- }
- }
-}
diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201013061938_Initial.Designer.cs b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201210071514_Initial.Designer.cs
similarity index 58%
rename from modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201013061938_Initial.Designer.cs
rename to modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201210071514_Initial.Designer.cs
index 64e92cbea5..449f18fb53 100644
--- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201013061938_Initial.Designer.cs
+++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20201210071514_Initial.Designer.cs
@@ -11,17 +11,17 @@ using Volo.CmsKit.EntityFrameworkCore;
namespace Volo.CmsKit.Migrations
{
[DbContext(typeof(UnifiedDbContext))]
- [Migration("20201013061938_Initial")]
+ [Migration("20201210071514_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
+ .UseIdentityColumns()
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "3.1.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
+ .HasAnnotation("ProductVersion", "5.0.1");
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{
@@ -30,99 +30,99 @@ namespace Volo.CmsKit.Migrations
.HasColumnType("uniqueidentifier");
b.Property("ApplicationName")
- .HasColumnName("ApplicationName")
+ .HasMaxLength(96)
.HasColumnType("nvarchar(96)")
- .HasMaxLength(96);
+ .HasColumnName("ApplicationName");
b.Property("BrowserInfo")
- .HasColumnName("BrowserInfo")
+ .HasMaxLength(512)
.HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
+ .HasColumnName("BrowserInfo");
b.Property("ClientId")
- .HasColumnName("ClientId")
+ .HasMaxLength(64)
.HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
+ .HasColumnName("ClientId");
b.Property("ClientIpAddress")
- .HasColumnName("ClientIpAddress")
+ .HasMaxLength(64)
.HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
+ .HasColumnName("ClientIpAddress");
b.Property("ClientName")
- .HasColumnName("ClientName")
+ .HasMaxLength(128)
.HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
+ .HasColumnName("ClientName");
b.Property("Comments")
- .HasColumnName("Comments")
+ .HasMaxLength(256)
.HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
+ .HasColumnName("Comments");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
+ .HasMaxLength(40)
.HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
+ .HasColumnName("ConcurrencyStamp");
b.Property("CorrelationId")
- .HasColumnName("CorrelationId")
+ .HasMaxLength(64)
.HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
+ .HasColumnName("CorrelationId");
b.Property("Exceptions")
- .HasColumnName("Exceptions")
+ .HasMaxLength(4000)
.HasColumnType("nvarchar(4000)")
- .HasMaxLength(4000);
+ .HasColumnName("Exceptions");
b.Property("ExecutionDuration")
- .HasColumnName("ExecutionDuration")
- .HasColumnType("int");
+ .HasColumnType("int")
+ .HasColumnName("ExecutionDuration");
b.Property("ExecutionTime")
.HasColumnType("datetime2");
b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
b.Property("HttpMethod")
- .HasColumnName("HttpMethod")
+ .HasMaxLength(16)
.HasColumnType("nvarchar(16)")
- .HasMaxLength(16);
+ .HasColumnName("HttpMethod");
b.Property("HttpStatusCode")
- .HasColumnName("HttpStatusCode")
- .HasColumnType("int");
+ .HasColumnType("int")
+ .HasColumnName("HttpStatusCode");
b.Property("ImpersonatorTenantId")
- .HasColumnName("ImpersonatorTenantId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("ImpersonatorTenantId");
b.Property("ImpersonatorUserId")
- .HasColumnName("ImpersonatorUserId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("ImpersonatorUserId");
b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
b.Property("TenantName")
.HasColumnType("nvarchar(max)");
b.Property("Url")
- .HasColumnName("Url")
+ .HasMaxLength(256)
.HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
+ .HasColumnName("Url");
b.Property("UserId")
- .HasColumnName("UserId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("UserId");
b.Property("UserName")
- .HasColumnName("UserName")
+ .HasMaxLength(256)
.HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
+ .HasColumnName("UserName");
b.HasKey("Id");
@@ -140,39 +140,39 @@ namespace Volo.CmsKit.Migrations
.HasColumnType("uniqueidentifier");
b.Property("AuditLogId")
- .HasColumnName("AuditLogId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("AuditLogId");
b.Property("ExecutionDuration")
- .HasColumnName("ExecutionDuration")
- .HasColumnType("int");
+ .HasColumnType("int")
+ .HasColumnName("ExecutionDuration");
b.Property("ExecutionTime")
- .HasColumnName("ExecutionTime")
- .HasColumnType("datetime2");
+ .HasColumnType("datetime2")
+ .HasColumnName("ExecutionTime");
b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
b.Property("MethodName")
- .HasColumnName("MethodName")
+ .HasMaxLength(128)
.HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
+ .HasColumnName("MethodName");
b.Property("Parameters")
- .HasColumnName("Parameters")
+ .HasMaxLength(2000)
.HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
+ .HasColumnName("Parameters");
b.Property("ServiceName")
- .HasColumnName("ServiceName")
+ .HasMaxLength(256)
.HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
+ .HasColumnName("ServiceName");
b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
b.HasKey("Id");
@@ -190,39 +190,39 @@ namespace Volo.CmsKit.Migrations
.HasColumnType("uniqueidentifier");
b.Property("AuditLogId")
- .HasColumnName("AuditLogId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("AuditLogId");
b.Property("ChangeTime")
- .HasColumnName("ChangeTime")
- .HasColumnType("datetime2");
+ .HasColumnType("datetime2")
+ .HasColumnName("ChangeTime");
b.Property("ChangeType")
- .HasColumnName("ChangeType")
- .HasColumnType("tinyint");
+ .HasColumnType("tinyint")
+ .HasColumnName("ChangeType");
b.Property("EntityId")
.IsRequired()
- .HasColumnName("EntityId")
+ .HasMaxLength(128)
.HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
+ .HasColumnName("EntityId");
b.Property("EntityTenantId")
.HasColumnType("uniqueidentifier");
b.Property("EntityTypeFullName")
.IsRequired()
- .HasColumnName("EntityTypeFullName")
+ .HasMaxLength(128)
.HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
+ .HasColumnName("EntityTypeFullName");
b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
b.HasKey("Id");
@@ -243,30 +243,30 @@ namespace Volo.CmsKit.Migrations
.HasColumnType("uniqueidentifier");
b.Property("NewValue")
- .HasColumnName("NewValue")
+ .HasMaxLength(512)
.HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
+ .HasColumnName("NewValue");
b.Property("OriginalValue")
- .HasColumnName("OriginalValue")
+ .HasMaxLength(512)
.HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
+ .HasColumnName("OriginalValue");
b.Property("PropertyName")
.IsRequired()
- .HasColumnName("PropertyName")
+ .HasMaxLength(128)
.HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
+ .HasColumnName("PropertyName");
b.Property("PropertyTypeFullName")
.IsRequired()
- .HasColumnName("PropertyTypeFullName")
+ .HasMaxLength(64)
.HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
+ .HasColumnName("PropertyTypeFullName");
b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
b.HasKey("Id");
@@ -275,6 +275,37 @@ namespace Volo.CmsKit.Migrations
b.ToTable("AbpEntityPropertyChanges");
});
+ modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("ProviderKey")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ProviderName")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Name", "ProviderName", "ProviderKey");
+
+ b.ToTable("AbpFeatureValues");
+ });
+
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
{
b.Property("Id")
@@ -283,33 +314,33 @@ namespace Volo.CmsKit.Migrations
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
+ .HasMaxLength(40)
.HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
+ .HasColumnName("ConcurrencyStamp");
b.Property