mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 05:11:59 +08:00
Update exp to sql
This commit is contained in:
@@ -784,6 +784,10 @@ namespace SqlSugar
|
||||
isValueBool = isValue && isBool && isRoot;
|
||||
isLength = memberName == "Length" && childIsMember && childExpression.Type == UtilConstants.StringType;
|
||||
isDateValue = memberName.IsIn(Enum.GetNames(typeof(DateType))) && (childIsMember && childExpression.Type == UtilConstants.DateType);
|
||||
if (isDateValue == false && childExpression?.Type?.FullName == "System.DateOnly"&& memberName.IsIn(Enum.GetNames(typeof(DateType))))
|
||||
{
|
||||
isDateValue = true;
|
||||
}
|
||||
var isLogicOperator = ExpressionTool.IsLogicOperator(baseParameter.OperatorValue) || baseParameter.OperatorValue.IsNullOrEmpty();
|
||||
isHasValue = isLogicOperator && memberName == "HasValue" && expression.Expression != null && expression.NodeType == ExpressionType.MemberAccess;
|
||||
isDateDate = memberName == "Date" && expression.Expression.Type == UtilConstants.DateType;
|
||||
|
||||
Reference in New Issue
Block a user