예제 #1
0
        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);
        }
예제 #2
0
 public ParameterProvider(QueryContext context, ParameterExpression expr)
 {
     ExpressionName = expr.Name;
     ParamName = context.NextParam(this);
 }
예제 #3
0
        public ConstantProvider(QueryContext context, object value)
        {
            Value = value;

            ParamName = context.NextParam(this);
        }
예제 #4
0
        public ConstantProvider(QueryContext context, ConstantExpression expr)
        {
            Value = expr.Value;

            ParamName = context.NextParam(this);
        }