Provides a custom IDbProfiler implemenation to help you capture all sql commands that have been executed against a database, support SQL Server / MySQL out of the box and you can extend for your own database very easy.
On NuGet: MiniProfiler.Integrations / MiniProfiler.Integrations.MySQL
Setup is in 3 simple steps:
Install-Package MiniProfiler.Integrations
var profiler = CustomDbProfiler.Current;
using (var dbConnection = ProfiledDbConnectionFactory.New(new SqlServerDbConnectionFactory(connectionString), profiler))
{
// DO YOUR WORKS
}
var commands = profiler.GetCommands();
If you like this project then please consider a donation as a thank you.