Converting SQL Query to LINQ 2 SQL expression

Posted by Shyju on Stack Overflow See other posts from Stack Overflow or by Shyju
Published on 2010-06-16T19:19:22Z Indexed on 2010/06/16 19:22 UTC
Read the original article Hit count: 196

Filed under:
|

How can i rewrite the below SQL query to its equivalent LINQ 2 SQL expression (both in C# and VB.NET)

    SELECT t1.itemnmbr, t1.locncode,t1.bin,t2.Total
        FROM  IV00200 t1 (NOLOCK)
                     INNER JOIN
              IV00112 t2 (NOLOCK)
                 ON  t1.itemnmbr = t2.itemnmbr 
                 AND t1.bin = t2.bin
                 AND t1.bin = 'MU7I336A80'

© Stack Overflow or respective owner

Related posts about sql

Related posts about linq-to-sql