Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
0b99bbcc24
  1. 11
      SqlSugar/ExpressionsToSql/ExpressionContext.cs

11
SqlSugar/ExpressionsToSql/ExpressionContext.cs

@ -23,6 +23,7 @@ namespace SqlSugar
public ResolveExpressType Type { get; set; }
public Expression Expression { get; set; }
public StringBuilder ResultString { get; set; }
public object ResultObj { get; set; }
public bool IsWhereSingle
{
get
@ -62,7 +63,15 @@ namespace SqlSugar
resolve.Start();
if (this.ResultString == null) return string.Empty;
return this.ResultString.ToString();
}
}
public virtual object GetResultObj()
{
BaseResolve resolve = new BaseResolve(new ExpressionParameter() { Expression = this.Expression, Context = this });
resolve.Start();
return this.ResultObj;
}
#endregion
}
}

Loading…
Cancel
Save