Help with Subsonic3 LINQ query

Posted by Saif Khan on Stack Overflow See other posts from Stack Overflow or by Saif Khan
Published on 2010-06-09T23:47:12Z Indexed on 2010/06/09 23:52 UTC
Read the original article Hit count: 638

Filed under:
|
|
|

I have the following subsonic entities

TInvoiceHeader
TAccountAssociation

How can I achieve the following in LINQ

SELECT * from TInvoiceHeader
WHERE custid IN 
  (SELECT custid FROM TAccountAssociation
     WHERE username = 'a')

I need to bind the results to a GridView.

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb.net