Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
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.

<u>TABLES</u>

1) Project_Master


        <u>Field Name</u>
        project_id
        project_name
        company_id
        company_category_id
        project_status_id

2)Company_Master

       <u>Field Name</u>
       company_id
       company_name
       company_category_id

3) Company_Category_Master

<u> Field Name </u>
Company_Category_Id<pre>

Company_Category_Name

4) Project_Status_Master

<u>Field Name</u>
Project_Status_Id
Project_Status_Name


Now i want to get following data

Company_Name
Total completed project using status id(1)=complete
Total Project
Company_categary_name

How can I fatch data with linq query.
Posted
Comments
postonoh 26-Mar-12 23:59pm    
http://msdn.microsoft.com/en-us/vstudio/bb688084 vb
http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b c#
examples of linq queries

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