score:6

Accepted answer

you need to remove x => as you have already mentioned at starting of where condition. that's it.

int stopped = db.jobs.where(x => x.status == "stopped" && x.locationid == 1).count();

score:0

you doing wrong what you need to do is:

int stopped = db.jobs.where(x => x.status == "stopped" &&  x.locationid == 1).count();

Related Query

More Query from same tag