Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foreign key problem
Message
From
05/02/2010 15:27:41
 
 
To
05/02/2010 13:37:13
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01447781
Message ID:
01447832
Views:
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
>
>
>Stupid question, but do you mean the EF designer or sqlMetal for Linq to SQL?

Not stupid and Not sure what you mean by sqlMetal

this is

model

Add

Linq to Sql

the drag the tables onto the design surface but I get no foreign key.



Nick
Previous
Reply
Map
View

Click here to load this message in the networking platform