public ITableQueryAsync <T> OrderByDescending <TValue>(Expression <Func <T, TValue> > orderExpr) { if (orderExpr == null) { throw new ArgumentNullException("orderExpr"); } return(new TableQueryAsync <T>( _innerQuery.OrderByDescending(orderExpr), _db, _taskScheduler ?? TaskScheduler.Default, _taskCreationOptions)); }
private async Task DoOrderByDesc() { var enumerable = connection.RunAsync(testTable.OrderByDescending(o => o.Name)); Assert.That(enumerable, Is.Not.Null); var count = 0; while (true) { if (!await enumerable.MoveNext()) { break; } ++count; Assert.That(enumerable.Current.Name, Is.EqualTo((8 - count).ToString())); } Assert.That(count, Is.EqualTo(7)); }
public IAsyncTableQuery <T> OrderByDescending <U>(Expression <Func <T, U> > orderExpr) { return(new AsyncTableQuery <T>(_innerQuery.OrderByDescending <U>(orderExpr))); }