zoukankan      html  css  js  c++  java
  • 在NopCommerce中启用MiniProfiler

    MVC MiniProfiler是Stack Overflow团队设计的一款对ASP.NET MVC、WebForm 以及WCF 的性能分析的小程序。可以对一个页面本身,及该页面通过直接引用、Ajax、Iframe形式访问的其它页面进行监控,监控内容包括数据库内容,并可以显示数据库访问的SQL(支持EF、EF CodeFirst等 )。并且以很友好的方式展现在页面上。

    1、下载MVC MiniProfiler

    在 Visual Studio 通过Nuget包管理器搜索并下载MiniProfiler,安装后在程序中引用。

    2、在NopCommerce 3.7中启用MiniProfiler

    NopCommerce 3.7本身已经集成了对MiniProfiler的支持,在Globe.asax.cs的Application_BeginRequest中可以看到如下代码:

    顺藤摸瓜,找到所在的数据库,在Setting表中找到Name为storeinformationsettings.displayminiprofilerinpublicstore的记录,修改其Value为True.

    补充: 更合理的方法是在后台设置中修改,进入:配置管理设置菜单所有设置高级, 找到Name为storeinformationsettings.displayminiprofilerinpublicstore的记录,修改其Value为true.

    刷新后,看到新能信息显示。

  • 相关阅读:
    verilog RTL编程实践之四
    TB平台搭建之二
    hdu3466 Proud Merchants
    poj2411 Mondriaan's Dream (用1*2的矩形铺)
    zoj3471 Most Powerful
    poj2923 Relocation
    hdu3001 Travelling
    poj3311 Hie with the Pie
    poj1185 炮兵阵地
    poj3254 Corn Fields
  • 原文地址:https://www.cnblogs.com/legendjslc/p/5372488.html
Copyright © 2011-2022 走看看