mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 02:51:58 +08:00
Synchronization code
This commit is contained in:
@@ -1035,7 +1035,14 @@ namespace SqlSugar
|
||||
List<IConditionalModel> conditionalModels = (List<IConditionalModel>) model.Args[1].MemberValue;
|
||||
var sqlObj = this.Context.SugarContext.Context.Queryable<object>().SqlBuilder.ConditionalModelToSql(conditionalModels, 0);
|
||||
model.Args[1].MemberName = sqlObj.Key;
|
||||
this.Context.Parameters.AddRange(sqlObj.Value);
|
||||
if (sqlObj.Value != null)
|
||||
{
|
||||
this.Context.Parameters.AddRange(sqlObj.Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
return " 1=1 ";
|
||||
}
|
||||
}
|
||||
return this.Context.DbMehtods.Exists(model);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.3.27</version>
|
||||
<version>5.1.3.28-preview04</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
||||
Reference in New Issue
Block a user