Most efficient way to see if a query returns anything?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 anni tempo fa
I'm doing a basic query like

var query = from p in context.Pictures
where p.PictureBinary == myBinary
select p;

then I want to do a if to see if the query found anything.

query.count()  didn't seem to work, and theres no isEnumerable

Anyone have a quick idea?
13 anni tempo fa
Never mind I think .Any() works goods.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.