How to get connectionString from EF Core 2.0 DbContext
var connectionString = ctx.Database.GetDbConnection().ConnectionString;
with EF Core 5:
var connectionString = ctx.Database.GetConnectionString();
var connectionString = ctx.Database.GetDbConnection().ConnectionString;
with EF Core 5:
var connectionString = ctx.Database.GetConnectionString();