Does EF Core have a connection pool?

asp.net-core entity-framework-core

Question

The DbContext of EF Core is scoped in the ASP.NET Core services. So a new DbContext is created on each request. Does this mean that a new connection is opened on each request, including all the overhead like logging in to the database? Or is there a connection pool that is independent of the DbContext?

1
0
6/17/2019 4:38:34 PM

Accepted Answer

The underlying ADO.NET provider like System.Data.SqlClient usually implements a connection pool

1
6/17/2019 4:44:22 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow