I have something like the following:
var lst = db.usp_GetLst(ID,Name, Type);
if (lst.Count == 0)
{
}
I get a swigly lie under lst.Count == 0 and it says:
Operator '==' cannot be applied to operands of type 'method group' and 'int'
Enumerable.Count
is an extension method, not a property. This meansusp_GetLst
probably returnsIEnumerable<T>
(or some equivalent) rather than a derivative ofIList<T>
orICollection<T>
which you expected.