Entity Framework persisting child collection sort

2019-05-18 17:16发布

问题:

In NHibernate I can map a collection as a List to persist the order of the collection to the database.

I'm using EF Code First (CTP4). How can I persist the sort order of a child collection (IList) without exposing the relationship in my domain model?