I'm using LLBLGen v 3.5
Maybe I've set this up incorrectly but the following code should sort on a Date field - but it doesn't seem to. At the same time it executes without complaint. Odd.
//convert collection to view
EntityView2<CapsOutputEntity> view = new EntityView2<CapsOutputEntity>(colCapsOutput);
// apply filter
IPredicateExpression filter = new PredicateExpression(CapsOutputFields.Ssn == capsEntity.Ssn);
view.Filter = filter;
// apply sort
ISortExpression sorter = new SortExpression(CapsOutputFields.DworkStart | SortOperator.Ascending);
view.Sorter = sorter;
The property of the entity in question here is a DateTime type
public virtual Nullable<System.DateTime> DworkStart
Any suggestions of what I might try?
Thanks
Thomas