Skip to content
Advertisement

EF – AND NOT EXISTS (SELECT 1 …) with Entity Framework

I am trying to run this query using Entity Framework in my ASP.NET MVC project but I am not succeeding. Could anyone help me do this using LINQ?

TABLES:

Advertisement

Answer

The direct equivalent LINQ construct of SQL NOT EXISTS (...) is !Any(...).

So

translates to

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement