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

  • Home
  • SEARCH
  • 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 3451824
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:11:13+00:00 2026-05-18T09:11:13+00:00

After quick overview I didn’t find how to deal with linq to sql if

  • 0

After quick overview I didn’t find how to deal with linq to sql if I have several nested inner joins.

That’s what I’d like to have in linq

SELECT Booking.BookingId, Booking.EventId, Booking.StartDate, Event.Name, Person.FirstName
FROM Booking
    INNER JOIN Event 
        INNER JOIN Asset
        ON Asset.AssetId = Event.AssetId
        INNER JOIN Person
        ON Person.PersonId = Event.ContactPersonId
    ON Event.EventId = Booking.EventId AND Event.State = 4

Does anyone know how to translate it to LINQ?
Thanks.

  • 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-05-18T09:11:14+00:00Added an answer on May 18, 2026 at 9:11 am
    var q1= from a in booking,b in event,c in asset, d in person where a.eventid=b.eventid and b.state=4 and c.assetid = b.assetid and b.contactpersonid=d.personid select a,b,c,d
    

    you can replace a,b,c,d at then with the column names you want

    another way is to use the join keyword:

    var w1= from a in booking join b in event on a.eventid equals b.eventid join c in asset on ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After a quick scan of related questions on SO, I have deduced that there's
After a quick Google I couldn’t find anything too promising so I was wondering
After a quick research here and here , the solutions didn't work for my
After a quick research on the Stackoverflow, I wasn't able to find any solution
After a quick subclassing of Windows.Forms.Label and then noticing that the default Label is
Just after a quick wait command that will make my application stop, for say
I want my program always know all of the mountpoints. After a quick google
I just upgraded Symfony to the 2.0.12 version. And after a quick look to
Hey guys got a quick question here, how do i set up TweetStream after
I wanted to quick test a small snippet of PHP code. So, After doing

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.