1
Answer

Linq query

Hemant Mehra

Hemant Mehra

10y
774
1
SELECT ActionName,AVG(CASE WHEN pp.PageId=rr.GroupPageID AND GroupName='Profile' AND DisplayId='Action_View' THEN 1 ELSE 0 END) AS Rights
FROM (dbo.PagePermission pp LEFT JOIN dbo.AssignRightsToRole rr ON pp.PageId=rr.GroupPageID)
WHERE GroupName='Profile' AND DisplayId='Action_View'
GROUP BY ActionName
 
how to convert above query into linq??? 
Answers (1)