Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

I am working in MVC3 and just start with it. I have one problem and don't know how to solve. I have 3 tables and i want data from 3 tables. And i don't know how to get data from these tables.

TABLES

1) Project_Master
Posted

1 solution

SQL
var pageObject = (from t1 in table1
                  join t2 in table2 on t1.filed equals t2.field
                  join t3 in table3 on t2.filed equals t3.filed
                  Select new(t1.field,t2.field,t3.field.....)
 
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