SQL в Linq Converter Online бесплатно
select count(*) from MandatoryDocumentToIntakeDocs
where MandatoryDocumentInStateID = 2
and IntakeDocumentTypeID in(
select IntakeDocumentTypeID from Documents where Discriminator='IntakeDocumentTypeDocument' and IntakeProcessId = 1
)
Wrong Wryneck