随笔分类 - EntityFramework
摘要:1:安装MiniProfiler使用Nuget安装:选择MiniProfiler.EF 默认会把MiniProfiler安装上,笔者程序是Asp.Net WebForm 不需要安装MiniProfiler.MVC32: 在Global.asax中添加下面代码:void Application_BeginRequest(){if (Request.IsLocal){ MiniProfiler.Start();}}void Application_EndRequest(){ MiniProfiler.Stop();}void Application_Start(object sender, E..
阅读全文