开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜