2020-07-08 16:12:49 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace AntDesign.TableModels
|
|
|
|
|
{
|
|
|
|
|
public interface ITableSortModel
|
|
|
|
|
{
|
2021-01-24 13:52:57 +08:00
|
|
|
|
public string Sort { get; }
|
2020-07-08 16:12:49 +08:00
|
|
|
|
|
|
|
|
|
public int Priority { get; }
|
|
|
|
|
|
|
|
|
|
public string FieldName { get; }
|
|
|
|
|
|
2021-01-24 13:52:57 +08:00
|
|
|
|
internal SortDirection SortDirection { get; }
|
2020-07-08 16:12:49 +08:00
|
|
|
|
|
2021-01-24 13:52:57 +08:00
|
|
|
|
internal void SetSortDirection(SortDirection sortDirection);
|
2020-07-08 16:12:49 +08:00
|
|
|
|
|
2021-01-24 13:52:57 +08:00
|
|
|
|
internal IOrderedQueryable<TItem> SortList<TItem>(IQueryable<TItem> source);
|
2020-07-08 16:12:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|