mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Update exp to sql
This commit is contained in:
parent
bfd5a40599
commit
6352e499dd
@ -515,7 +515,9 @@ namespace SqlSugar
|
|||||||
});
|
});
|
||||||
parameter.Context.Result.Append(this.Context.GetAsString(asName, sql));
|
parameter.Context.Result.Append(this.Context.GetAsString(asName, sql));
|
||||||
}
|
}
|
||||||
else if (item.NodeType == ExpressionType.Not && (item as UnaryExpression).Operand is MethodCallExpression)
|
else if (item.NodeType == ExpressionType.Not
|
||||||
|
&& (item as UnaryExpression).Operand is MethodCallExpression
|
||||||
|
&& ((item as UnaryExpression).Operand as MethodCallExpression).Method.Name.IsIn("IsNullOrEmpty", "IsNullOrWhiteSpace"))
|
||||||
{
|
{
|
||||||
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));
|
||||||
|
Loading…
Reference in New Issue
Block a user