mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 13:21:59 +08:00
update exp to sql
This commit is contained in:
@@ -69,6 +69,19 @@ 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?.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")
|
||||
|
||||
Reference in New Issue
Block a user