mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 DbContext.Save 只查询不更新的bug;
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user