Entity Framework persisting child collection sort order

牧云@^-^@ 提交于 2019-12-07 13:34:21

问题


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?

来源:https://stackoverflow.com/questions/4327281/entity-framework-persisting-child-collection-sort-order

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!