Entity Framework 5.0 composite foreign key to non primary key - is it possible?

雨燕双飞 提交于 2019-12-02 01:32:41

As mentioned, since EF doesn't support unique keys and other SQL objects. I ended up creating some scripts as embedded resources and have them execute as part of the seed process of the drop/create initializer.

Not sure if this will allow you to navigate between the objects in code, but it works pretty nicely to have the database get updated in one process.

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