예제 #1
0
        public IListExpression <TRequest, TEntity, TResult> SortDirection(string name = null, Action <ISortDirectionExpression <TRequest, TResult> > action = null)
        {
            var expression = new SortDirectionExpression <TRequest, TResult>(name);

            action?.Invoke(expression);
            SortDirectionDefinition = expression;
            return(this);
        }
예제 #2
0
        public IListExpression <TRequest, TEntity, TResult> SortDirection(Expression <Func <TRequest, Direction> > property, Action <ISortDirectionExpression <TRequest, TResult> > action = null)
        {
            var expression = new SortDirectionExpression <TRequest, TResult>(property);

            action?.Invoke(expression);
            SortDirectionDefinition = expression;
            return(this);
        }