修改影响归档 seqId 自动生成,不是数据库自动生成
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-02 11:05:33 +08:00
parent bd4e4e0072
commit 84f4343791
11 changed files with 19 additions and 21 deletions
@@ -94,6 +94,10 @@ namespace IRaCIS.Core.Infra.EFCore
{
modelBuilder.Entity(entityType.ClrType).Property<Guid>(nameof(Entity.Id)).HasValueGenerator<MySequentialGuidValueGenerator>();
}
if (typeof(IEntitySeqId).IsAssignableFrom(entityType.ClrType))
{
modelBuilder.Entity(entityType.ClrType).Property<Guid>(nameof(IEntitySeqId.SeqId)).HasValueGenerator<MySequentialGuidValueGenerator>();
}
}
}