开发者

How can I define the order for ObjectSet?

开发者 https://www.devze.com 2023-01-11 00:00 出处:网络
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开发者_如何学编

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消