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