Provide a custom IDbProfiler implemenation that can capture sql command executed against a database and some utility methods around MiniProfiler components.
Install-Package MiniProfiler.Integrations -Version 2.3.1
dotnet add package MiniProfiler.Integrations --version 2.3.1
<PackageReference Include="MiniProfiler.Integrations" Version="2.3.1" />
paket add MiniProfiler.Integrations --version 2.3.1
- Created ProfiledDbConnectionFactory
- Added Database and Connection in which the command was executed on
- Support ReviewCommandTextEventHandler which can be used to do some extra task on command text (such as re-format the text)
- Signed the assembly
- The SqlConnectionFactory has been renamed to DbConnectionFactoryHelper. The new method now accepts an instace of IDbConnectionFactory
- Default support is for SQL Server database. If your database is MySQL or any other kind, please create an implementation of IDbConnectionFactory.
- Remove private constructor on CustomDbProfiler, so that it can be instantiate whenever we need or use CustomDbProfiler.Current as well.
- MiniProfiler (>= 126.96.36.199)
This package is not used by any popular GitHub repositories.