Get SqlConnection from DbConnection
Well, if both can share the same Connection String then I guess they’re both SqlConnection. Try this instead: var connection = rep.Database.Connection as SqlConnection;
Well, if both can share the same Connection String then I guess they’re both SqlConnection. Try this instead: var connection = rep.Database.Connection as SqlConnection;
I had the same issue – the resources being requested use “static” file extensions (such as .js) and therefore IIS wants to handle them using its static file handler. Luckily all of the MiniProfiler resources are requested with the path mini-profiler-resources, so you can add the following to your web.config: <system.webServer> … <handlers> <add name=”MiniProfiler” … Read more
[UPDATE] Please see the following links for a version of that uses RealProxy to proxy the SqlCommand – batching is now supported blog http://blog.fearofaflatplanet.me.uk/mvcminiprofiler-and-nhibernate-take-2 gist https://gist.github.com/1110153 I’ve left the original answer unaltered as it was accepted. [/UPDATE] I’ve managed to partially get this to work by implementing a Profiled Client Driver (example for Sql Server … Read more