My code
var numberOfStudents = _context.Student.Count();
In the database , about 4.000.000 records. I tried
var numberOfStudents = _context.Student.Count();
but "Timeout expired" error still occur. I setted command timout to 5 mins. But this error still occur.