How to make "select count (*)" in the ADO.NET Entity Framework

How can I do "select count (*)" using the ADO.NET Entity Framework?

Thanks!

+3
source share
1 answer

Use the Count () LINQ operator. If you use C #, there is nothing in the syntax of the query expressions to cover this, so you need to do this using dot notation.

+7
source

Source: https://habr.com/ru/post/1704782/


All Articles