mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update Core
This commit is contained in:
@@ -38,10 +38,18 @@ namespace SqlSugar
|
|||||||
this.Context.Result.Append(value.ObjToBool() ? "( 1 = 1 ) " : "( 1 = 2 ) ");
|
this.Context.Result.Append(value.ObjToBool() ? "( 1 = 1 ) " : "( 1 = 2 ) ");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (parentIsBinary && value != null && value.GetType() == PubConst.BoolType && parameter.OppsiteExpression is BinaryExpression)
|
if (parentIsBinary && value != null && value.GetType() == PubConst.BoolType && parameter.BaseExpression != null)
|
||||||
{
|
{
|
||||||
AppendMember(parameter,isLeft,(value.ObjToBool() ? "( 1 = 1 ) " : "( 1 = 2 ) "));
|
var isLogicOperator =
|
||||||
break;
|
parameter.BaseExpression.NodeType == ExpressionType.And ||
|
||||||
|
parameter.BaseExpression.NodeType == ExpressionType.AndAlso ||
|
||||||
|
parameter.BaseExpression.NodeType == ExpressionType.Or ||
|
||||||
|
parameter.BaseExpression.NodeType == ExpressionType.OrElse;
|
||||||
|
if (isLogicOperator)
|
||||||
|
{
|
||||||
|
AppendMember(parameter, isLeft, (value.ObjToBool() ? "( 1 = 1 ) " : "( 1 = 2 ) "));
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (value == null && parentIsBinary)
|
if (value == null && parentIsBinary)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user