public static Expression <Func <T, bool> > GetFilterExpression <T>(this IExpressionBuilder expressionBuilder, Filter filter) { expressionBuilder.CheckArgumentNull(nameof(expressionBuilder)); return((Expression <Func <T, bool> >)expressionBuilder.GetFilterExpression(typeof(T), filter)); }
public static Expression <Func <T, object> > GetPropertyExpression <T>(this IExpressionBuilder expressionBuilder, string propertyName, bool ignoreCase = true) { expressionBuilder.CheckArgumentNull(nameof(expressionBuilder)); return((Expression <Func <T, object> >)expressionBuilder.GetPropertyExpression(typeof(T), propertyName, typeof(T), typeof(object), ignoreCase)); }