How to determine the order for an ObjectSet?

The default order of an ObjectSet is an identifier. Is there any attribute that I can use for matching to indicate a custom order? I do not want to introduce any property that will order entities, and not the "EntitiesByMyOrder" property. I want a specific order to be used as the default order from mappings.

early.

+3
source share
1 answer

Is there a reason not to use the ObjectSet.OrderBy method ? There is also a set of extension methods for the OrderBy method on the MemberSet Members page on MSDN .

+2
source

Source: https://habr.com/ru/post/1759222/


All Articles