Accessing Connection property using DbContext
It is in the DbContext and it should be public.
dbContext.Database.Connection.ConnectionString
also:
dbContext.Database.Connection.BeginTransaction(isolationLevel)
In the brave new .Net Core world, you can use:
using Microsoft.EntityFrameworkCore;
context.Database.GetDbConnection();