Ejemplo n.º 1
0
        protected virtual ISortExpression <TEntity, TId> GetSortExpression(TQuery request)
        {
            var sortExpression = new SortExpression <TEntity, TId>();

            // Add rules and possible sorts discovered by reflection for type TQuery
            _sortService.AddSort <TQuery, TEntity>(sortExpression);

            return(sortExpression);
        }