Can any one convert this sql query into LINQ or LAMBDA Expression.
select [Id]
,[Name]
,[Ordinal]
,[ThemeId]
,[CourseDisplayTitle]
,[CourseLocation]
,[Enabled]
,[FriendlyId]
,[DateCreated]
,[IsDeleted]
,[DateDeleted]
,[IsDummyData]
,case when Count is null then 0 else count end as 'count'
from (
SELECT [Id]
,[Name]
,[Ordinal]
,[ThemeId]
,[CourseDisplayTitle]
,[CourseLocation]
,[Enabled]
,[FriendlyId]
,[DateCreated]
,[IsDeleted]
,[DateDeleted]
,[IsDummyData]
FROM [dbo].[Courses]) A
LEFT OUTER JOIN
(select courseId,count(*) AS 'Count'
from [TTF-Unitron].[dbo].[Modules]
group by courseid) B
ON a.id= b.courseid