From d9910a7aadee173dc5856155cd78e1205293486c Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 21 Apr 2022 09:01:19 +0800 Subject: [PATCH] =?UTF-8?q?test=20=E9=94=99=E8=AF=AF=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs index b25f0ae29..bb036b7fe 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) {