Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foreign key problem
Message
From
05/02/2010 17:58:35
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
05/02/2010 12:24:54
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01447781
Message ID:
01447865
Views:
35
>HI
>
>I've created a database in SQL2008. Two tables with a foreign key relationship.
>
>Then in Visual Studio2008 I'm trying to create a LINQ to SQL Data Model.
>
>I drag the tables onto the design surface but no Foreign key is appearing.
>
> I thought that appeared automatically if the key was defined in the database.
>
>Any ideas what I might have missed.
>
>
>Thanks
>
>Nick

Hmm I am not a EF person as of yet so take this with a grain of salt. I had heard the model hid the foreign key when there was a relationship set up as it takes care of that for you. Might want to do a search on that to see if I heard correctly.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform