How can I do a "select count(*)" using ADO.NET Entity Framework?
Thanks!
Use the Count() LINQ operator. If you're using C#, there isn't anything in the query expression syntax to cover this, so you have to do call it with dot-notation.
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