c# - How To Convert Sql Query to Linq Which contans Subquery -
my query follows
`select * daps_user_activity userid in (select userid daps_portaluser emr_id = 24855) `
what equivalent query in linq please me...
try this, it's better use join
in instance, instead of sub-query:
var results = (from in daps_user_activity join u in daps_portaluser on a.userid equals u.userid u.emr_id == 24855 select a).tolist()
Comments
Post a Comment