Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How to translate this SQL statement in to LINQ?

$
0
0

How to translate this SQL statement in to LINQ?

SELECT G.GroupId, G.GroupName, G.GroupDescription
FROM [dbo].[PartyGroup] AS G
WHERE G.GroupId NOT IN
    (SELECT GroupId
     FROM [dbo].[UserGroup]
     WHERE GroupId = 140)
     AND G.GroupId <> 140

Also for this statement please

SELECT G.UserId, G.eFirstName, G.eLastName, G.Id
FROM [dbo].[AspNetUsers] AS G
WHERE G.UserId NOT IN
    (SELECT UserId
     FROM [dbo].[UserGroup]
     WHERE GroupId = 140)


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>