Anyone who has worked with dependency injection in .NET, might have registered something like this:

builder.Services.AddDbContext<AppDbContext>(options =>

options.UseSqlServer(connectionString));

Enter fullscreen mode

Exit fullscreen mode