There is a new hook that was added before Simple.Data , which improves integration with MiniProfiler.
AdoAdapter.ConnectionCreated += (o, args) => args.OverrideConnection(new ProfiledDbConnection((DbConnection)args.Connection, MiniProfiler.Current));
This basicallt allows you to connect to an event created by a connection and redefine it using its own profiled connection.
NOTE. Since writing this post, this change is not yet part of the nuget package. so you need your custom assembly Simple.Data
source share