任何人都可以告诉我如何使用EF编写linq查询。我的SQL查询是
select * from
(select tr.Training_id,
tr.title,
tr.create_on,
tr.modified_on,
max(lo.created_on) as lastDate
from [trainig] tr
join [training_video_log] lo
on tr.Training_id = lo.fk_trainingvideo_resource_file
and lo.fk_user_id = 1050
group by tr.Training_id, tr.title, tr.create_on, tr.modified_on) X
Where modified_on > lastDate