I need to get the amount of records with a certain filter.
Theoretically this instruction:
_dbContext.People.Count (w => w.Type == 1);
Try to use this lambda expression for execute query faster.
_dbContext.People.select(x=> x.id).Count();