Exemple #1
0
 /// <summary>
 /// Sets column name sort by and sorting direction
 /// </summary>
 /// <param name="order"></param>
 /// <returns></returns>
 public DbQuery OrderBy(DbOrder order)
 {
     Order = order;
     return(this);
 }
Exemple #2
0
 /// <summary>
 /// Sets column name sort by and sorting direction
 /// </summary>
 /// <param name="columnName"></param>
 /// <param name="sortingDirection"></param>
 /// <returns></returns>
 public DbQuery OrderBy(string columnName, DbSortingDirection sortingDirection)
 {
     Order = new DbOrder(columnName, sortingDirection);
     return(this);
 }