Пример #1
0
 public static DmlfSortOrderType GetOpposite(this DmlfSortOrderType type)
 {
     if (type == DmlfSortOrderType.Ascending)
     {
         return(DmlfSortOrderType.Descending);
     }
     else
     {
         return(DmlfSortOrderType.Ascending);
     }
 }
Пример #2
0
        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;
            }
        }