Browse Source

feat: 设置DefaultSequentialGuidType和数据库匹配

pull/89/head
WangJunZzz 3 years ago
parent
commit
a264011084
  1. 7
      aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProEntityFrameworkCoreModule.cs

7
aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProEntityFrameworkCoreModule.cs

@ -1,3 +1,5 @@
using Volo.Abp.Guids;
namespace Lion.AbpPro.EntityFrameworkCore
{
[DependsOn(
@ -23,6 +25,11 @@ namespace Lion.AbpPro.EntityFrameworkCore
options.AddDefaultRepositories(includeAllEntities: true);
});
Configure<AbpSequentialGuidGeneratorOptions>(options =>
{
options.DefaultSequentialGuidType = SequentialGuidType.SequentialAsString;
});
Configure<AbpDbContextOptions>(options =>
{
/* The main point to change your DBMS.

Loading…
Cancel
Save