Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
0a9dd90260
  1. BIN
      .vs/SqlSugar/v14/.suo
  2. 2
      SqlSugar/ExpressionsToSql/ExpressionContext.cs
  3. 2
      SqlSugar/ExpressionsToSql/ResolveItems/ConstantExpressionResolve.cs
  4. 2
      SqlSugar/ExpressionsToSql/ResolveItems/MemberConstExpressionResolve.cs
  5. 4
      SqlSugar/ExpressionsToSql/ResolveItems/MemberExpressionResolve.cs
  6. 2
      SqlSugar/ExpressionsToSql/ResolveItems/MemberNewExpressionResolve.cs
  7. 2
      SqlSugar/ExpressionsToSql/ResolveItems/MemberNoExpressionResolve.cs

BIN
.vs/SqlSugar/v14/.suo

Binary file not shown.

2
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
{

2
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)
{

2
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)
{

4
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<string, BinaryExpressionInfo>(ExpressionConst.BinaryExpressionInfoListKey, new BinaryExpressionInfo()
{

2
SqlSugar/ExpressionsToSql/ResolveItems/MemberNewExpressionResolve.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 = null;
var isField = expression.Member is System.Reflection.FieldInfo;
var isProperty = expression.Member is System.Reflection.PropertyInfo;

2
SqlSugar/ExpressionsToSql/ResolveItems/MemberNoExpressionResolve.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 = null;
var isField = expression.Member is System.Reflection.FieldInfo;
var isProperty = expression.Member is System.Reflection.PropertyInfo;

Loading…
Cancel
Save