使用N层架构配置Glimpse SQL选项卡 [英] Configuring Glimpse SQL Tab with N-Layer Architecture
问题描述
我在解决方案中有N个项目。 Web和数据库是分开的。
我安装了:
Glimpse,Glimpse.EF6,Glimpse.MVC,Glimpse.Ado 到Web项目,但似乎没有任何工作。我甚至试图在DbContext中使用GlimpseDbConnection - 仍然没有结果。
public CemaDbContext():base(cemaDbContextConnection,true)
{
}
私有静态GlimpseDbConnection cemaDbContextConnection
{
get
{
var contextSection = ConfigurationManager.ConnectionStrings [ManagerConnection] .ConnectionString;
return new GlimpseDbConnection(new SqlConnection(contextSection));
}
}
也许有人可以指导我通过如何设置SQL Tab ?
似乎这个问题很愚蠢。 200新新新新旗新新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新新旗新新旗新新旗200新新新旗新新旗200新新新新旗200新新新旗200 200 200 X- X-45454545 X- 20045 CEEC X-
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?
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.
这篇关于使用N层架构配置Glimpse SQL选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!