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;
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
// handles profiling based on cookie, etc