For development purposes I want to display the database it is connected to since I have 1 for development and 1 for production use. How do I do that using either Javascript, html or c#?
Right now I am connected via c#
protected MysqlDbContext db = new MysqlDbContext();
public class MysqlDbContext: DbContext
{
public MysqlDbContext() : base("MysqlDbContext")
{
}
}
var a = db.Database.Connection.Database.ToString(); //returns me the database name
So how can I access the a from my cshtml file?