Help with Subsonic3 ActiveRecord 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/10 0:42 UTC
Read the original article Hit count: 656

Filed under:
|
|
|

I have the following subsonic entities

TInvoiceHeader
TAccountAssociation

How can I achieve the following in LINQ (subsonic)

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