Exemple #1
0
        public static IQueryable <TEntity> DynamicFilterBy <TEntity>(this IQueryable <TEntity> source, FilterModel orderModel)
        {
            var builder = new FilterExpressionBuilder();

            var orderedSource = builder.ApplyToCollection(source, orderModel);

            return(orderedSource);
        }