示例#1
0
        public static IEnumerable <TSource> WhereDynamic <TSource>(this IEnumerable <TSource> source, Expression <Func <TSource, bool> > predicate)
        {
            var expression = ExpressionManager.ExpressionConvert(predicate);

            return(source.Where(expression.Compile()));
        }
示例#2
0
 public static Expression <Func <TSource, bool> > FilterNull <TSource>(this Expression <Func <TSource, bool> > predicate)
 {
     return(ExpressionManager.ExpressionConvert(predicate));
 }