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.
精彩评论