Using MiniProfiler, MiniProfiler.EF6 and MiniProfiler.MVC4 packages. Explicitly wrapping steps and custom timings is working as expected, but raw SQL execution isn’t being picked up e.g.
var context = new MyContext(userIdentity); var sql = "select * from customers where customer_id = @customer_id"; var param = new SqlParameter("customer_id", System.Data.SqlDbType.Int); param.Value = 123; context.Database.ExecuteSqlCommand(sql, param);
Using latest version of all specified packages. I seem to remember this automatically working in the past, but maybe an update broke it?
// called when app starts MiniProfilerEF6.Initialize(); // handles profiling based on cookie, etc DynamicModuleUtility.RegisterModule(typeof(Modules.MiniProfilerStartupModule));