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