Mid Azure

How do you manage connection pooling with Azure SQL?

  • Use ADO.NET connection pooling (default in .NET).
  • Ensure DbContext is scoped per request in ASP.NET Core.
  • Example:

services.AddDbContext<MyDbContext>(options =>

options.UseSqlServer(connectionString));

More from Microsoft Azure Tutorial

All questions for this course