I'm trying to write a LINQ query that that simply gets the count of rows where a variable ('id') is equal to the JOB_GROUP statement. Problem is, Visual Studio is returning an error on the ; at the end, saying 'Only assignment calls.....may be used as a statement'. Is there anything obvious wrong with my query?
var noofrows = from s in dc.QRTZ_JOB_DETAILs
where id == s.JOB_GROUP
select s.JOB_NAME.Count();