Sorting with code in partial class

Posts   
 
    
Posts: 2
Joined: 16-Feb-2007
# Posted on: 15-Mar-2007 10:51:02   

Guys/Gals,

I have a partial class of an entity with an extra property or two in e.g. int Position.

I need to sort the entitycollection (preferably using the entitycollection.Sort()), but on the new property.

Any ideas?

Adam

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 15-Mar-2007 14:26:49   

You can do this by specifying an EntityProperty to the sortExpression of an EntityView. For more details please refer to the LLBLGen Pro manual: "Using the generated code -> Adapter/SelfServicing -> Using the EntityView(2) class"

Go to the following section: Filtering and sorting an EntityView2 -> Multi-clause sorting