Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foreign key problem
Message
De
05/02/2010 17:58:35
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
05/02/2010 12:24:54
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01447781
Message ID:
01447865
Vues:
38
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform