score:3

Accepted answer

You are trying to use the System.Linq.Queryable.Where extension method, but your code thinks you want System.Data.Objects.ObjectQuery.Where.

Make sure you have the correct Imports System.Linq statement at the top of your file. If that doesn't work, you might have to directly call System.Linq.Queryable.Where(testResults, ...).Count. You could also use Count(predicate) instead of Where(predicate).Count, which might also avoid the conflict.


Related Articles