mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 DbContext/Repository InsertOrUpdate 无变化时触发 Insert 逻辑报错;#1700
This commit is contained in:
@ -507,7 +507,7 @@ namespace FreeSql
|
||||
await UpdateRangePrivAsync(new[] { data }, false, cancellationToken);
|
||||
await DbContextFlushCommandAsync(cancellationToken);
|
||||
affrows = _db._affrows - affrows;
|
||||
if (affrows > 0) return;
|
||||
return;
|
||||
}
|
||||
if (CanAdd(data, false))
|
||||
{
|
||||
|
@ -579,7 +579,7 @@ namespace FreeSql
|
||||
UpdateRangePriv(new[] { data }, false);
|
||||
DbContextFlushCommand();
|
||||
affrows = _db._affrows - affrows;
|
||||
if (affrows > 0) return;
|
||||
return;
|
||||
}
|
||||
if (CanAdd(data, false))
|
||||
{
|
||||
|
Reference in New Issue
Block a user