как мне написать это sql утверждение в выражении linq, объединяющее представление "ContractInfo" и столбцы из других таблиц в этом Sql утверждении.
select c."AuditNotes" as "Audit",
ci.* from "ContractInfo" ci inner join "Contracts" c on ci."ContractId"=c."Id"
where
(c."Fees">0) and
(c."AutoRenew" is true) and
exists (select from "ClientSessions" cs where
cs."ContractId"=c."Id" and
"ScheduledTime" between now()-interval '1 month' and now() and
"Status" in (1,2) and
"IsDeleted" is false) and
not exists (select from "Invoices" i where
i."ContractId"=c."Id" and
i."InvoiceDate">now()-interval '1 month'-interval '15 day') and
({HIDEOK}='' OR c."AuditNotes" not like 'OK %')