I would like to know how to convert SQL query listed below into LINQ query in VB.
SELECT FacilityID
FROM tblFacilityProjects
WHERE FreedomEnabled = True and ProjectID in (840,841,842)
Something like this should do it I think:
Dim projectIds = New Integer() {840, 841, 842}
Dim result = From proj In db.tblFacilityProjects _
Where proj.FreedomEnabled = True AndAlso _
projectIds.Contains(proj.ProjectID) _
Select FacilityID