1:1 relationship problems with EF Model First

↘锁芯ラ 提交于 2019-12-02 08:04:47

1:1 relationship is generally defined by having foreign key in the first table and then having it cascade on delete, in database design.

IE: Users table and UserProperties table. Users table would have a UserPropertiesId as the foreign key and UserProperties would essentially treat Users as many Users to one UserProperties. That's just how things are, and if you only select by Users table it isn't an issue.

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