- 修复 DbContext.Save 只查询不更新的bug;

This commit is contained in:
28810
2019-08-14 11:22:34 +08:00
parent 710b12c3e8
commit a62d07d2b7
13 changed files with 13 additions and 13 deletions

View File

@ -326,7 +326,7 @@ namespace FreeSql
if (flagExists == false)
{
var olddata = OrmSelect(data).First();
if (olddata == null) flagExists = false;
flagExists = olddata != null;
}
if (flagExists == true && CanUpdate(data, false))