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:
@ -285,7 +285,7 @@ namespace FreeSql
|
||||
if (flagExists == false)
|
||||
{
|
||||
var olddata = await OrmSelect(data).FirstAsync();
|
||||
if (olddata == null) flagExists = false;
|
||||
flagExists = olddata != null;
|
||||
}
|
||||
|
||||
if (flagExists == true && CanUpdate(data, false))
|
||||
|
@ -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))
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
|
||||
<Version>0.8.5</Version>
|
||||
<Version>0.8.6</Version>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Authors>YeXiangQin</Authors>
|
||||
<Description>FreeSql is the most convenient ORM in dotnet. It supports Mysql, Postgresql, SqlServer, Oracle and Sqlite.</Description>
|
||||
|
Reference in New Issue
Block a user