get the values of a foreign key

04WGshasta

New Member
Hi is there an easy way to get the values of a foreign key, without writing sql queries.I generated the code with the help of my mssql database (ADO.NET).Here's an example for clarificationorder table:\[code\]id customer_fk1 1002 105\[/code\]customer table:\[code\]id name100 Walter105 White\[/code\]view:\[code\]@model ...order...@customer_fk\[/code\]@customer_fk delivers eg. "100" instead of "Walter"
 
Back
Top