我们如何在 LINQ 中写下查询的等价物?
SELECT
<<Columns>>
FROM <<SOME JOINS>>
AND ISNULL(t.invoiceTypeID,0) NOT IN (2,3)
AND EXISTS
(
SELECT TOP 1 1 FROM <<Table name >> WHERE <<Condition>>
)
AND NOT EXISTS
(
SELECT TOP 1 1 FROM <<Table name >> WHERE <<Condition>>
)
AND NOT EXISTS
(
SELECT TOP 1 1 FROM <<Table name >> WHERE <<Condition>>
)