- 修复 聚合根仓储 InsertOrUpdate 重复插入的 bug;

This commit is contained in:
2881099
2022-11-01 22:01:20 +08:00
parent 95ceb0245b
commit 02b16ba8bd
3 changed files with 8 additions and 6 deletions

View File

@ -218,7 +218,7 @@ namespace FreeSql
if (flagExists == true)
{
var affrows = Update(entity);
if (affrows > 0) return entity;
return entity;
}
if (table.Primarys.Where(a => a.Attribute.IsIdentity).Count() == table.Primarys.Length)
{