Browse Source

-

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
0317ba1263
  1. 16
      Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MemberExpressionResolve.cs

16
Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MemberExpressionResolve.cs

@ -31,21 +31,21 @@ namespace SqlSugar
if (isLength)
{
ResolveLength(parameter, isLeft, expression);return;
ResolveLength(parameter, isLeft, expression); return;
}
else if (isHasValue)
{
ResolveHasValue(parameter, expression);return;
ResolveHasValue(parameter, expression); return;
}
else if (isDateValue)
{
ResolveDateValue(parameter, isLeft, expression);return;
ResolveDateValue(parameter, isLeft, expression); return;
}
else if (isValueBool){isValue = false;}
else if (isValue){expression = expression.Expression as MemberExpression;}
else if (isValueBool) { isValue = false; }
else if (isValue) { expression = expression.Expression as MemberExpression; }
else if (isDateDate)
{
ResolveDateDate(parameter, isLeft, expression);return;
ResolveDateDate(parameter, isLeft, expression); return;
}
else if (isMemberValue)
{
@ -76,9 +76,8 @@ namespace SqlSugar
{
fieldName = GetName(parameter, expression, null, isSingle);
baseParameter.CommonTempData = fieldName;
break;
}
else
{
if (isValueBool)
{
fieldName = GetName(parameter, expression.Expression as MemberExpression, isLeft, isSingle);
@ -98,7 +97,6 @@ namespace SqlSugar
fieldName = "( " + fieldName + "=1 )";
}
fieldName = AppendMember(parameter, isLeft, fieldName);
}
break;
case ResolveExpressType.FieldSingle:
fieldName = GetSingleName(parameter, expression, isLeft);

Loading…
Cancel
Save