Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to get data from two table(having foreign key) by passing single id in efw4.0(entity framwork) and what should be its return type?
Posted
Updated 20-Oct-12 5:31am
v2
Comments
Sandeep Mewara 20-Oct-12 11:17am    
efw?
Simon_Whale 20-Nov-12 10:02am    
I can only assume entity framework
Simon_Whale 20-Nov-12 10:03am    
Are you on about returning 2 seperate tables? or join 2 tables?

1 solution

Take a look at the bottom of this article there is a join between two tables with ID fields.

LINQ to Entities: Basic Concepts and Features[^]
 
Share this answer
 

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