…
list = db.AuctionOnlineLots
.All()
ApplySort();
…..
private void ApplySort()
{
if (string.IsNullOrWhiteSpace(query.Sort)) return;
if (query.SortDirection == 1)
list = list.OrderBy(db[tableName][query.Sort]);
if (query.SortDirection == 2)
list = list.OrderByDescending(db[tableName][query.Sort]);
}
HTH Rippo
--
You received this message because you are subscribed to the Google Groups "Simple.Data" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
simpledata+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.