score:1

You need to access the SpotLanding member of your object (which by the way, should not also be called SpotLanding as that is just confusing).

Also you can write your query much more concisely using the overload of Count that takes a predicate:

int spot = entrytable.Count(x => x.SpotLanding);

score:1

where SpotLanding = true

you're trying to assign a boolean value instead comparing it.

where SpotLanding == true

score:1

You need to use the == operator instead of =

var spot = (from SpotLanding in entrytable
                where SpotLanding == true
                select SpotLanding).Count;

Related Articles