问题
I know it's often question regarding disabled SQL tab in Glimpse but I really can't make it work. I have N projects in Solution. Web and Database are seperated. I installed:
Glimpse, Glimpse.EF6, Glimpse.MVC, Glimpse.Ado to Web project, but nothing seems work. I even tried to use GlimpseDbConnection in DbContext - still no result.
public CemaDbContext() : base(cemaDbContextConnection, true)
{
}
private static GlimpseDbConnection cemaDbContextConnection
{
get
{
var contextSection = ConfigurationManager.ConnectionStrings["ManagerConnection"].ConnectionString;
return new GlimpseDbConnection(new SqlConnection(contextSection));
}
}
Maybe somebody can guide me thru how to setup SQL Tab?
回答1:
Seems that problem was very stupid. I tried to test Glimpse SQL tab with Elmah and not with actual data that was posted or received. When I created View with form with simple data post SQL TAB start working.
来源:https://stackoverflow.com/questions/39500420/configuring-glimpse-sql-tab-with-n-layer-architecture