- 修复 DbContext/Repository InsertOrUpdate 无变化时触发 Insert 逻辑报错;#1700

This commit is contained in:
2881099
2023-12-29 14:15:21 +08:00
parent 2272c46df6
commit 8f9228a612
3 changed files with 2 additions and 11 deletions

View File

@ -579,7 +579,7 @@ namespace FreeSql
UpdateRangePriv(new[] { data }, false);
DbContextFlushCommand();
affrows = _db._affrows - affrows;
if (affrows > 0) return;
return;
}
if (CanAdd(data, false))
{