linq where clause not in select statement
        Posted  
        
            by Annie
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Annie
        
        
        
        Published on 2009-08-21T20:12:25Z
        Indexed on 
            2010/06/09
            0:32 UTC
        
        
        Read the original article
        Hit count: 439
        
Can someone help me to convert from SQL Query to LINQ VB.NET:
select rls.* from Roles rls(nolock)
where rls.id not in (
select r.ID from usersRole ur (nolock)
inner join Roles r(nolock) on ur.RoleID = r.ID
where user_id = 'NY1772')
Thanks
© Stack Overflow or respective owner