我有類似LINQ加入多個條件或操作
SELECT [t0].[Id], [t1].[Id], [t1].[DepartmentId]
FROM [ScannedDocuments] AS [t0]
INNER JOIN [Documents_RelatedDepartments] AS [t1]
ON (([t0].[Id] = [t1].[Id]) AND (1 = [t1].[DepartmentId]))
OR (([t0].[Id] = [t1].[Id]) AND (56 = [t0].InsertById))
結果如預期的SQL服務器上,但我不能把它翻譯到LINQ。有什麼想法嗎?
在此先感謝。
雖然其他答案工作正常,這一個很像我的風格;)感謝大家。 – bsaglamtimur