test 错误提交

Uat_Study
hang 2022-04-21 09:01:19 +08:00
parent c29cb37f8e
commit d9910a7aad
1 changed files with 4 additions and 4 deletions

View File

@ -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)
{