How do I test if a Linq to SQL query returns no rows?
The .Any()
LINQ operator:
results.Any()
Returns false if there are no rows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With