コード例 #1
0
 /// <summary>
 /// Sort the documents of resultset in ascending (or descending) order according to a key (support only one OrderBy)
 /// </summary>
 public ILiteQueryableAsync <T> OrderBy(BsonExpression keySelector, int order = Query.Ascending)
 {
     _wrappedQuery.OrderBy(keySelector, order);
     return(this);
 }
コード例 #2
0
 public IDataQuery <T> OrderBy <K>(Expression <Func <T, K> > keySelector)
 => new LiteDataQuery <T>(_queryable.OrderBy(keySelector));