Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7744981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:53:58+00:00 2026-06-01T09:53:58+00:00

I am working in Asp.Net 4.0 C#– MVC-3 . I have one problem and

  • 0

I am working in Asp.Net 4.0 C#– MVC-3. I have one problem and don’t know how to solve. I have 4 tables and want to fetch data from that tables with LINQ.

TABLES

1) Project_Master

    Field Names :   

    project_id (pk)
    project_name
    company_id (FK with company_master)
    company_category_id (FK with Company_Category_master)
    project_status_id (FK with Project_Status_Master)

2)Company_Master

   Field Names :

   company_id
   company_name
   company_category_id (FK with Company_Category_Master)

3) Company_Category_Master

   Field Names :

   Company_Category_Id
   Company_Category_Name

4) Project_Status_Master

   Field Name :

   Project_Status_Id
   Project_Status_Name

Below are the fields I need to fetch..(using LINQ Query)

  1. Company_Name
  2. Total completed project using status id(1)=complete (where staus 1 means completed)
  3. Total Project
  4. Company_category_name

So, how can I fetch data with linq query??

Thanks in advance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:54:00+00:00Added an answer on June 1, 2026 at 9:54 am

    Try the below example:

    (From lse In Me.Leases, nty In Me.Entities, psg In Me.ProductionStages, lsg In LeaseStages _
            Where lse.LeaseName = leaseName _
            Select lse, lsg, nty, psg).Single
    

    or you can use below example too:

    var employeesQuery = from populationTable in db.Populations
    join personTable in db.Persons on populationTable.Guid equals personTable.PopulationGuid
    join employeeTable in db.Employees on personTable.Guid equals employeeTable.PersonGuid
    select new { populationTable, personTable, employeeTable};
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with asp.net MVC. Now I don't know how to send data form
I have been working on asp.net 3.5.I want to Convert a DateTime Data from
I am working on ASP.Net 2.0 website and I have a strange problem. First
While working on ASP.NET MVC 2 web site I faced to the following problem.
I am working in Asp.net MVC and have a peculiar requirement for which I
I am working on asp.net MVC 3 application. I have created a Razor view
I have been working with ASP.NET MVC for a couple of months now and
I am working in ASP.NET Web Application. I dont know about MVC and ASP.NET
Working in ASP.NET MVC, I have a view model with an Amount field. The
I am working on asp.net MVC application. I have a folder with some sub

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.