public static DmlfSortOrderType GetOpposite(this DmlfSortOrderType type) { if (type == DmlfSortOrderType.Ascending) { return(DmlfSortOrderType.Descending); } else { return(DmlfSortOrderType.Ascending); } }
public static void GenSql(this DmlfSortOrderType type, ISqlDumper dmp) { switch (type) { case DmlfSortOrderType.Ascending: dmp.Put("^asc"); break; case DmlfSortOrderType.Descending: dmp.Put("^desc"); break; } }