예제 #1
0
 public SortModel(PropertyInfo propertyInfo, int priority, string sort)
 {
     this._propertyInfo = propertyInfo;
     this.Priority      = priority;
     this.FieldName     = propertyInfo?.Name;
     this.SortType      = SortType.Parse(sort) ?? SortType.None;
 }
예제 #2
0
 public SortModel(FieldIdentifier fieldIdentifier, int priority, string sort)
 {
     this._fieldIdentifier = fieldIdentifier;
     this.FieldName        = fieldIdentifier.FieldName;
     this.Priority         = priority;
     this.SortType         = SortType.Parse(sort) ?? SortType.None;
 }
예제 #3
0
 public SortModel(PropertyInfo propertyInfo, int priority, string sort, Func <TField, TField, int> comparer)
 {
     this._propertyInfo = propertyInfo;
     _comparer          = comparer;
     this.Priority      = priority;
     this.FieldName     = propertyInfo?.Name;
     this.SortType      = SortType.Parse(sort) ?? SortType.None;
 }
 public DataIndexSortModel(string dataIndex, LambdaExpression propertySelect, int priority, string sort, Func <TField, TField, int> comparer)
 {
     this.FieldName       = dataIndex;
     this._propertySelect = propertySelect;
     this._comparer       = comparer;
     this.Priority        = priority;
     this.SortType        = SortType.Parse(sort) ?? SortType.None;
 }
예제 #5
0
 void ITableSortModel.SetSortType(string sortType)
 {
     this.SortType = SortType.Parse(sortType);
 }