diff --git a/.vs/SqlSugar/v14/.suo b/.vs/SqlSugar/v14/.suo index 6dbf3a96d..5315f486b 100644 Binary files a/.vs/SqlSugar/v14/.suo and b/.vs/SqlSugar/v14/.suo differ diff --git a/SqlSugar/ExpressionsToSql/ExpressionContext.cs b/SqlSugar/ExpressionsToSql/ExpressionContext.cs index 1a996b982..0b463d126 100644 --- a/SqlSugar/ExpressionsToSql/ExpressionContext.cs +++ b/SqlSugar/ExpressionsToSql/ExpressionContext.cs @@ -23,7 +23,7 @@ namespace SqlSugar public ResolveExpressType Type { get; set; } public Expression Expression { get; set; } public StringBuilder SqlWhere { get; set; } - public bool IsSingle + public bool IsWhereSingle { get { diff --git a/SqlSugar/ExpressionsToSql/ResolveItems/ConstantExpressionResolve.cs b/SqlSugar/ExpressionsToSql/ResolveItems/ConstantExpressionResolve.cs index fbb324c0d..64ef1adc2 100644 --- a/SqlSugar/ExpressionsToSql/ResolveItems/ConstantExpressionResolve.cs +++ b/SqlSugar/ExpressionsToSql/ResolveItems/ConstantExpressionResolve.cs @@ -12,7 +12,7 @@ namespace SqlSugar { var expression = base.Expression as ConstantExpression; var isLeft = parameter.IsLeft; - var isSingle = parameter.Context.IsSingle; + var isWhereSingle = parameter.Context.IsWhereSingle; object value = expression.Value; if (parameter.BaseParameter.BinaryExpressionInfoList != null) { diff --git a/SqlSugar/ExpressionsToSql/ResolveItems/MemberConstExpressionResolve.cs b/SqlSugar/ExpressionsToSql/ResolveItems/MemberConstExpressionResolve.cs index 3cb1d5470..2c3ee853a 100644 --- a/SqlSugar/ExpressionsToSql/ResolveItems/MemberConstExpressionResolve.cs +++ b/SqlSugar/ExpressionsToSql/ResolveItems/MemberConstExpressionResolve.cs @@ -13,7 +13,7 @@ namespace SqlSugar { var expression = base.Expression as MemberExpression; var isLeft = parameter.IsLeft; - var isSingle = parameter.Context.IsSingle; + var isWhereSingle = parameter.Context.IsWhereSingle; object value = ExpressionTool.GetValue(expression.Member, expression); if (parameter.BaseParameter.BinaryExpressionInfoList != null) { diff --git a/SqlSugar/ExpressionsToSql/ResolveItems/MemberExpressionResolve.cs b/SqlSugar/ExpressionsToSql/ResolveItems/MemberExpressionResolve.cs index 70ea27a9a..5774c1899 100644 --- a/SqlSugar/ExpressionsToSql/ResolveItems/MemberExpressionResolve.cs +++ b/SqlSugar/ExpressionsToSql/ResolveItems/MemberExpressionResolve.cs @@ -11,9 +11,9 @@ namespace SqlSugar { var expression = base.Expression as MemberExpression; var isLeft = parameter.IsLeft; - var isSingle = parameter.Context.IsSingle; + var isWhereSingle = parameter.Context.IsWhereSingle; string fieldName = string.Empty; - fieldName = isSingle ? expression.Member.Name : expression.Member.ToString(); + fieldName = isWhereSingle ? expression.Member.Name : expression.Member.ToString(); if (parameter.BaseParameter.BinaryExpressionInfoList != null) parameter.BaseParameter.BinaryExpressionInfoList.Add(new KeyValuePair(ExpressionConst.BinaryExpressionInfoListKey, new BinaryExpressionInfo() { diff --git a/SqlSugar/ExpressionsToSql/ResolveItems/MemberNewExpressionResolve.cs b/SqlSugar/ExpressionsToSql/ResolveItems/MemberNewExpressionResolve.cs index a0d51d9a9..0558c976f 100644 --- a/SqlSugar/ExpressionsToSql/ResolveItems/MemberNewExpressionResolve.cs +++ b/SqlSugar/ExpressionsToSql/ResolveItems/MemberNewExpressionResolve.cs @@ -13,7 +13,7 @@ namespace SqlSugar { var expression = base.Expression as MemberExpression; var isLe