I want to return a dataset with some relations, the query is OK but I get the ID instead of the real value from the other table… This is the query
var thr=
from u in dc.thresholds
select u;
This returns something like this:
id: 1
name: some name
type_id: 1
owner_id: 1
I want to get type_id and owner_id with the values of theese tables, so it can be something like:
id: 1
name: some name
type_id: Danger
owner_id: John Smith
I hope some of you could give me some advices, I’m starting with LINQ to SQL and I’m a bit lost…
Thank you
if you want show name value for type_id(type_name in other table) you should use join like this: