How can I define the order for ObjectSet?
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, i开发者_如何学编程nstead of "EntitiesByMyOrder" property i want the certain order as default order from mappings.
thanks in advance.
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.
精彩评论