public ConstantProvider(QueryContext context, MemberExpression expr) { var constant = (ConstantExpression)expr.Expression; Value = constant.Type.GetField(expr.Member.Name).GetValue(constant.Value); ParamName = context.NextParam(this); }
public ParameterProvider(QueryContext context, ParameterExpression expr) { ExpressionName = expr.Name; ParamName = context.NextParam(this); }
public ConstantProvider(QueryContext context, object value) { Value = value; ParamName = context.NextParam(this); }
public ConstantProvider(QueryContext context, ConstantExpression expr) { Value = expr.Value; ParamName = context.NextParam(this); }