0

is it possible to change the item's order in a collection that is a navigationProperty?

sample:

A Entity "Order" has many "Item" Entities. One to Many Relation.

i want that all items of an order a sorted by the name. How could i do that without a query on the DbSet? I want that the items are sorted after i load them into the context.

Is this possible to manipulate the generated SQL Query from the EF to add a ORDER BY ?

Thx for the help!

4

1 回答 1

0

不可以。当您以任何方式处理项目时(例如,为了展示),您必须这样做。

于 2012-12-11T23:25:10.847 回答