Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I having three tables. first one is tbl_area and another is tbl_items.
the tbl_item have item record of area's.
The third table tbl_map maps both the table records, tbl_item and tbl_area.
There are also the foriegn key exist on the tbl_map.

I am using the framework 3.5
when I'm write the linq query for access the data from tbl_map.

example:
var id=**;
var data=context.tbl_map.FirstOrDefault(a=>a.pkmapId==id);

when I'm querying like this the refrencing table tbl_area and tbl_item data comes null.

Please give me your solutions.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900