Exemple #1
0
 public SortInfo CreateSortInfo(Expression<Func<TModel, object>> pro, SortDir dir)
 {
     SortInfo rv = new SortInfo
     {
         Property = PropertyHelper.GetPropertyName(pro),
         Direction = dir
     };
     return rv;
 }
Exemple #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="sortinfo">sortinfo</param>
 public OrderReplaceModifier(SortInfo sortinfo)
 {
     _sortinfo = sortinfo;
 }