예제 #1
0
파일: Query.cs 프로젝트: nxjcproject/nxjc
 /// <summary>
 /// 必要时使用字段的全称(表名加字段名)
 /// </summary>
 /// <param name="orderByClause"></param>
 public void AddOrderByClause(OrderByClause orderByClause)
 {
     _orderByClauses.Add(orderByClause);
 }
예제 #2
0
 /// <summary>
 /// 添加排序字段
 /// </summary>
 /// <param name="feildName"></param>
 /// <param name="isDesc"></param>
 public void AddOrderByClause(string feildName, bool isDesc)
 {
     OrderByClause order = new OrderByClause(feildName, isDesc);
     _orderByClause.Add(order);
 }