mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 01:14:33 +08:00
Update exp to sql
This commit is contained in:
parent
3d298f1ab8
commit
3ca1ea9d71
@ -557,6 +557,14 @@ namespace SqlSugar
|
|||||||
var asValue = packIfElse(GetNewExpressionValue(item)).ObjToString();
|
var asValue = packIfElse(GetNewExpressionValue(item)).ObjToString();
|
||||||
parameter.Context.Result.Append(this.Context.GetAsString(asName, asValue));
|
parameter.Context.Result.Append(this.Context.GetAsString(asName, asValue));
|
||||||
}
|
}
|
||||||
|
else if (item is MethodCallExpression && (item as MethodCallExpression).Method.Name.IsIn("Count", "Any"))
|
||||||
|
{
|
||||||
|
if (this.Context.IsSingle && this.Context.SingleTableNameSubqueryShortName == null)
|
||||||
|
{
|
||||||
|
this.Context.SingleTableNameSubqueryShortName = item.ToString().Split('.').First();
|
||||||
|
}
|
||||||
|
parameter.Context.Result.Append(this.Context.GetAsString(asName, GetNewExpressionValue(item)));
|
||||||
|
}
|
||||||
else if (item is MethodCallExpression || item is UnaryExpression || item is ConditionalExpression || item.NodeType == ExpressionType.Coalesce)
|
else if (item is MethodCallExpression || item is UnaryExpression || item is ConditionalExpression || item.NodeType == ExpressionType.Coalesce)
|
||||||
{
|
{
|
||||||
this.Expression = item;
|
this.Expression = item;
|
||||||
|
Loading…
Reference in New Issue
Block a user