string rep = "Joe Shmoe"
ObjectSet<StoreData> storeData = edmContext.StoreData;
ObjectSet<CallData> callData = edmContext.CallData;
IEnumerable<string> repStoreData = storeData.Where(r => r.RepName == rep).Select(s => s.Location);
IEnumerable<CallData> repCallData = Here is where I want to filter down the callData collection down to just the records that have a location that is contained in the repStoreData collection
我尝试过使用某种形式的 Join 和 Any 但并不真正理解那些要求的论点。
这是我最好的尝试,这是不行的。
... = callData.Join(d => d.LOCATION.Any(repStoreData));