When I use Entity Framework codefirst I can use the following code to get my database connection string:
var db = new dbContext();
Console.Writeline(db.Database.Connection.ConnectionString);
But when I do database first, Database is not available. How do I (from code at runtime) go about getting the database connection string that is being used by entity framework?