开发者

creating foreign key in ef 3.5 vs2010

Does anyone know of a work around to create foreign keys in the VS2010 Entity Framework designer for .Net 3.5?

Ik can make the ass开发者_Go百科ocation but not select the foreign key, can it be done from code?

Thanks.


No, you can't. Exposing foreign keys in your model is a feature which has been added in .NET 4.0. It's not available in .NET 3.5 SP1 (or earlier). That's the reason why this option is disabled in the designer when you target .NET 3.5.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜