diff --git a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs index b25f0ae2..bb036b7f 100644 --- a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs +++ b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs @@ -362,10 +362,10 @@ namespace IRaCIS.Core.Infra.EFCore case EntityState.Added: // 仓储添加时 就有id了 - if (t.Entity is Entity entity && entity.Id == Guid.Empty) - { - entity.Id = NewId.NextGuid(); - } + //if (t.Entity is Entity entity && entity.Id == Guid.Empty) + //{ + // entity.Id = NewId.NextGuid(); + //} if (t.Entity is IAuditAdd addEntity) {