This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Howdy All, I am trying to refactor the UnitOfWork class to add a "Ordered" collection of one of my entities... Presently the model has produced:
I am trying to understand and use the "OrderBy" method of the query, but it clearly does NOT like my attempts:
I've tried a couple of things, but can't seem to some up with the correct solution... Thanks in advance, Kevin Orcutt |
|
|
.OrderBy() requires you to supply a function which will be used to select the appropriate key on that object for ordering by. This will be a Func(Of Department) in your above example :) e.g.
|
|