convert sql to linq sample

Posted by Jeroen Breuer on Stack Overflow See other posts from Stack Overflow or by Jeroen Breuer
Published on 2010-04-15T15:03:36Z Indexed on 2010/04/15 15:23 UTC
Read the original article Hit count: 335

Filed under:
|
|

Hello,

I've got a sql statement, but I can't get it working in linq. Can someone show me how I can write the following sql statement as linq?

SELECT * FROM mobileApplication
LEFT JOIN videoMobile ON mobileApplication.id = videoMobile.mobileApplicationId
      AND videoMobile.videoId = 257

It's a left join with a where statement on the right table. It works in sql server 2005, but I'd like to write it in linq.

© Stack Overflow or respective owner

Related posts about sql

Related posts about linq-to-sql