Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Select records that does not exist in another table in Entity Framework

db.Customers
    .Where(c => !db.Blacklists
        .Select(b => b.CusId)
        .Contains(c.CusId)
    );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Select #records #exist #table #Entity #Framework
ADD COMMENT
Topic
Name
2+8 =