You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.5 KiB
42 lines
1.5 KiB
using System.Linq.Expressions;
|
|
namespace SqlSugar
|
|
{
|
|
public class ExpressionParameter
|
|
{
|
|
public ExpressionContext Context { get; set; }
|
|
public ExpressionParameter BaseParameter { get; set; }
|
|
public Expression BaseExpression { get; set; }
|
|
public Expression ChildExpression { get; set; }
|
|
public Expression LeftExpression { get; set; }
|
|
public Expression RightExpression { get; set; }
|
|
public Expression CurrentExpression { get; set; }
|
|
public string OperatorValue { get; set; }
|
|
public bool? IsLeft { get; set; }
|
|
public int Index { get; set; }
|
|
public bool ValueIsNull { get; set; }
|
|
public object CommonTempData { get; set; }
|
|
public ExpressionResultAppendType AppendType { get; set; }
|
|
public void IsAppendResult()
|
|
{
|
|
this.AppendType = ExpressionResultAppendType.AppendResult;
|
|
}
|
|
public void IsAppendTempDate()
|
|
{
|
|
this.AppendType = ExpressionResultAppendType.AppendTempDate;
|
|
}
|
|
public Expression OppsiteExpression
|
|
{
|
|
get
|
|
{
|
|
return this.IsLeft == true ? this.BaseParameter.RightExpression : this.BaseParameter.LeftExpression;
|
|
}
|
|
}
|
|
public bool IsSetTempData
|
|
{
|
|
get
|
|
{
|
|
return BaseParameter.CommonTempData.HasValue() && BaseParameter.CommonTempData.Equals(CommonTempDataType.Result);
|
|
}
|
|
}
|
|
}
|
|
}
|