Ejemplo n.º 1
0
        private static IQueryable <T> ApplyFilter <T>(this IQueryable <T> query, FilterNode filter)
        {
            if (filter == null)
            {
                return(query);
            }

            var config = new ParsingConfig
            {
                CustomTypeProvider = new CustomTypeProvider(),
                UseParameterizedNamesInDynamicQuery = true
            };

            return(query.Where(config, filter.GetPredicate()));
        }