views:

29

answers:

1

The default order of ObjectSet is by identity. Is there any attribute I can use in mapping to specify the custom order? I don't want introduce any property that would order entities, instead of "EntitiesByMyOrder" property i want the certain order as default order from mappings.

thanks in advance.

+2  A: 

Is there any reason not to use the ObjectSet.OrderBy method? There is also a set of the OrderBy extension method overloads on the ObjectSet Members page in MSDN.

Devart
As I said I don't need OrderBy overrides but change in default order.The reason is that valid order is only one order. Why I should use "OrderBy" overrides everywhere if there is only one certain order that is legal. And I want this order to be default order in mappings.
AndrewG