Как преобразовать инструкцию SQL server в инструкцию linq
SELECT [t1].[TimelineEndDate], [t0].[DateRecieved], [t2].[ConceptName],[t4].MaxTimeLimit FROM [QualityAssuranceTesting] AS [t0] LEFT JOIN [ImplementationTimeline] AS [t1] ON [t0].[RequestId] = [t1].[RequestId] LEFT JOIN [PIP_Concept] AS [t2] ON [t0].[RequestId] = [t2].[RequestId] LEFT JOIN [ActionHistoryInfo] AS [t3] ON [t2].[RequestId] = [t3].[RequestId] LEFT JOIN [SlaCategory] AS [t4] ON [t4].SlaLevel = 'Implementation' Left JOIN [ActionHistoryInfo] AS [t5] ON [t5].ActionTimeStamp BETWEEN '2017-11-06' AND '2017-09-06'
Что я уже пробовал:
from q in QualityAssuranceTestings join i in ImplementationTimelines .where(imple=>imple.RequestId == p.RequestId).DefaultIfEmpty() join c in PIP_Concepts .where(concept=>concept.RequestId == i.RequestId).DefaultIfEmpty() join a in ActionHistoryInfo .where(action=>action.RequestId == i.RequestId).DefaultIfEmpty() join s in SlaCategories.where(x=>x.Slalevel == "Implementation") into where a.ActionTimeStamp <=new DateTime(2017,09,06) && a.ActionTimeStamp>= new DateTime(2017,11,06) select new { i.TimelineEndDate, q.DateRecieved, c.ConceptName, }