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