>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