mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 23:13:42 +08:00
Synchronization code
This commit is contained in:
parent
f1b7a0d714
commit
931df5c3d4
@ -69,6 +69,20 @@ namespace SqlSugar
|
||||
parameter.Context.Result.Append(this.Context.GetAsString2(asName, GetNewExpressionValue(childExpression)));
|
||||
return;
|
||||
}
|
||||
else if (ExpressionTool.GetMethodName(item) == "IsNull"
|
||||
&& this.Context.SingleTableNameSubqueryShortName == null
|
||||
&& this.BaseParameter?.CurrentExpression is NewExpression
|
||||
&& (item as MethodCallExpression)?.Arguments?.FirstOrDefault() is MethodCallExpression
|
||||
&& item?.ToString()?.Contains("Join") == true
|
||||
&& ExpressionTool.GetParameters(this.BaseParameter?.CurrentExpression).Count() > 1)
|
||||
{
|
||||
var ps = ExpressionTool.GetParameters(this.BaseParameter?.CurrentExpression);
|
||||
this.Expression = item;
|
||||
this.Start();
|
||||
parameter.Context.Result.Append(this.Context.GetAsString2(asName, parameter.CommonTempData.ObjToString()));
|
||||
this.Context.SingleTableNameSubqueryShortName = ps.FirstOrDefault().Name;
|
||||
return;
|
||||
}
|
||||
this.Expression = item;
|
||||
this.Start();
|
||||
if (ExpressionTool.GetMethodName(item) == "MappingColumn")
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.128</version>
|
||||
<version>5.1.4.129-preview02</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user