MiniProfiler.Integrations provides a custom IDbProfiler implementation that records successfully executed and failed database commands, including command text, parameters, database and connection details, and errors. The core package includes a SQL Server connection factory. Install MiniProfiler.Integrations.MySql for MySQL support, or implement IDbConnectionFactory to integrate another provider.
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.
