using System.Data.SqlClient; using Microsoft.Extensions.DependencyInjection; // Add database provider to DI container services.AddDbContextIn this example, we're adding a new database provider to a dependency injection container using the services.AddDbContext(options => options.UseSqlServer(connString));