Пример #1
0
 private static string GetTypeString(DbOrderByType type)
 {
     if (type == DbOrderByType.Desc)
     {
         return(" DESC");
     }
     return(" ASC");
 }
Пример #2
0
 public DbOrderBy(string column, DbOrderByType type = DbOrderByType.Asc)
 {
     if (column == null)
     {
         throw new ArgumentNullException("column");
     }
     _column = column;
     _type   = type;
 }