In ConfigureServices I call
public void ConfigureServices(IServiceCollection services){
services.AddDbContext<MyDbContext>(
options => options.UseSqlServer(
_configuration.GetConnectionString(connectionString)));
}
but now I want a second instance of MyDbContext that uses different connection string. How to correctly do it so dependency still works? Is the only way is to create an empty MyDbContext subclass and register it this way?