'Gets a list of customer IDs which have callbacks set
Dim Callbacks = (From f In MyContext.Callbacks.Include("Customer") Where (f.TypeId > 0) Select f.Customer.Id).ToList
'Select customers who DO NOT have callbacks set
Customers = From c In MyContext.Customers _
Where (c.StatusId = 2) _
And Not Callbacks.Contains(c.Id) _
Select c
|