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));
 }
Beispiel #3
0
 public virtual IEnumerable <TEntity> GetByOrderExpression <TKey>(Expression <Func <TEntity, TKey> > orderExpression)
 {
     return(_repository.OrderBy(orderExpression));
 }