Skip to content

Commit

Permalink
feat: 设置DefaultSequentialGuidType和数据库匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJunZzz committed Feb 14, 2023
1 parent 71050dd commit a264011
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Volo.Abp.Guids;

namespace Lion.AbpPro.EntityFrameworkCore
{
[DependsOn(
Expand All @@ -23,6 +25,11 @@ public override void ConfigureServices(ServiceConfigurationContext context)
options.AddDefaultRepositories(includeAllEntities: true);
});

Configure<AbpSequentialGuidGeneratorOptions>(options =>
{
options.DefaultSequentialGuidType = SequentialGuidType.SequentialAsString;
});

Configure<AbpDbContextOptions>(options =>
{
/* The main point to change your DBMS.
Expand Down

0 comments on commit a264011

Please sign in to comment.