예제 #1
0
        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();
        }
예제 #2
0
파일: Grid.cs 프로젝트: pjdennis/fubumvc
 public void SortDescending(Expression <Func <TEntity, object> > property)
 {
     _definition.SortBy = SortRule <TEntity> .Descending(property);
 }