Пример #1
0
 public Expression Generate(Parameter parameter, LeftExpression left, RightExpression right, FilterAttribute filterAttribute, object value)
 {
     return(Expression.LessThan(left.GetExpression(), right.GetExpression()));
 }
Пример #2
0
 public Expression Generate(Parameter parameter, LeftExpression left, RightExpression right, FilterAttribute filterAttribute, object value)
 {
     return(Expression.Call(left.GetExpression(), typeof(string).GetMethod(CONTAINS_METHOD_NAME, new[] { typeof(string) }), right.GetExpression()));
 }