public void explicit_default_sort() { var definition = new GridDefinition <Case>(); definition.ShowViewLink(x => x.Condition); definition.SortBy = SortRule <Case> .Descending(x => x.Created); definition.SortBy.FieldName.ShouldEqual("Created"); definition.SortBy.IsAscending.ShouldBeFalse(); }
public void SortDescending(Expression <Func <TEntity, object> > property) { _definition.SortBy = SortRule <TEntity> .Descending(property); }