Reputation: 4023
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 assocation but not select the foreign key, can it be done from code?
Thanks.
Upvotes: 0
Views: 371
Reputation: 177133
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.
Upvotes: 1