public Map(Expression <Func <TB, T> > memberAccessExpression, PredicateBase <T> then) { Then = then; PropertyPath = memberAccessExpression.ToPropertyPath(); // TODO: Adapt for expression with more than one parameter. ParameterName = memberAccessExpression.Parameters.FirstOrDefault()?.Name; }
public PredicateBase <TB> Is(PredicateBase <T> predicate) { return(new Map <T, TB>(_source, predicate)); }
public static PredicateBase <T> Or <T>(this PredicateBase <T> left, PredicateBase <T> right) { return(new Any <T>(left, right)); }
public static PredicateBase <T> And <T>(this PredicateBase <T> left, PredicateBase <T> right) { return(new All <T>(left, right)); }
public Map(string propertyPath, PredicateBase <T> then) { Then = then; PropertyPath = propertyPath; }