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?
The underlying ADO.NET provider like System.Data.SqlClient usually implements a connection pool
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