Example #1
0
        protected virtual IFilterExpression <TEntity, TId> GetFilterExpression(TQuery request)
        {
            var filterExpression = new FilterExpression <TEntity, TId>();

            // Add rules and possible filters discovered by reflection for type TQuery
            _filterService.AddFilter <TQuery, TEntity>(filterExpression);

            return(filterExpression);
        }