开发者

Does entity framework 3.5 support composite keys made up from foreign keys?

开发者 https://www.devze.com 2023-03-16 23:10 出处:网络
We have a table which has a composite primary key consisting of two foreign keys. I know that this should work on EF 4.0 but we get an update exception when trying to insert the referenced entities wh

We have a table which has a composite primary key consisting of two foreign keys. I know that this should work on EF 4.0 but we get an update exception when trying to insert the referenced entities when using EF 3.5.

I tried to look for confirmation whether or not EF 3.5 supports this but the answer seems to always be "Yes, EF 4.0 supports this".

So I'm a开发者_运维百科sking here:

Does entity framework 3.5 support composite keys made up from foreign keys?

0

精彩评论

暂无评论...
验证码 换一张
取 消