public virtual IEnumerable <TEntity> GetByOrderExpression <TKey>(Expression <Func <TEntity, TKey> > orderExpression) { CheckForObjectAlreadyDisposedOrNot(typeof(QueryableDomainService <TEntity, TId>).FullName); return(_repository.OrderBy(orderExpression)); }
public virtual async Task <IList <TEntity> > GetByOrderExpressionAsync <TKey>(Expression <Func <TEntity, TKey> > orderExpression, CancellationToken token = default(CancellationToken)) { CheckForObjectAlreadyDisposedOrNot(typeof(QueryableDomainServiceAsync <TId, TEntity>).FullName); return(await _repository.OrderBy(orderExpression).ToListAsync(token)); }
public virtual IEnumerable <TEntity> GetByOrderExpression <TKey>(Expression <Func <TEntity, TKey> > orderExpression) { return(_repository.OrderBy(orderExpression)); }