Walaa wrote:
It depends if you want to sort them at client side using the EntityCollection.Sort() method.
Or you want them sorted when fetched from the database.
OnFetch seems a good candidate for the second case, but take care it would be executed every time you fetch the entity.
I see, I do prefer a server side sort.
Preferably I'd do it in the constructor, but I can't override the constructor since they're in the generated partial class part.
Walaa, can you please advise which method would be better? otherwise I'll stick with OnFetch.