I've been banging my head against the wall trying to translate a simple SQL Query into EF query..
Can anyone help please.. Following is the query I am trying to translate.
SELECT p.[UniqueId]
,p.[CAI]
,p.[HRGuid]
,p.[FullName]
,p.[Email]
,a.*
FROM [Participant] p
INNER JOIN
(
Select * FROM Assignment where assignmentNumber =
(Select MAX(AssignmentNumber)FROM
Assignment GROUP BY UniqueId)
) a
ON p.UniqueId = a.UniqueId
Basically I'm trying to get Participant along with their latest assignment.