entity framework - Using MiniProfiler in ASP.NET MVC 4 with EF5 -
i tried ef tracing provider check sql statements generated, want use miniprofiler, i'm not able see results...
what made far:
intalled packages:
uncomment initialization in miniprofiler.cs
public static void prestart() { //... //todo: if profiling ef code first try: miniprofileref.initialize(); //... }
added render in layout view (before closing body tag):
@miniprofiler.renderincludes()
but nothing showing in browser relative miniprofiler... i'm using database-first approach.
am missing something?
the following code should added in web.config:
<system.webserver> <validation validateintegratedmodeconfiguration="false" /> <handlers> //... <add name="miniprofiler" path="mini-profiler-resources/*" verb="*" type="system.web.routing.urlroutingmodule" resourcetype="unspecified" precondition="integratedmode" /> </handlers> </system.webserver>
Comments
Post a Comment