https://github.com/vndevpro/miniprofiler.integrations
MiniProfiler, SQL Server, MySQL, Dapper and how to log all executed sql commands
https://github.com/vndevpro/miniprofiler.integrations
dapper logging miniprofiler mysql sql-server
Last synced: 21 days ago
JSON representation
MiniProfiler, SQL Server, MySQL, Dapper and how to log all executed sql commands
- Host: GitHub
- URL: https://github.com/vndevpro/miniprofiler.integrations
- Owner: vndevpro
- Created: 2015-12-15T09:29:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T20:38:20.000Z (over 2 years ago)
- Last Synced: 2025-05-12T00:41:30.414Z (21 days ago)
- Topics: dapper, logging, miniprofiler, mysql, sql-server
- Language: C#
- Homepage:
- Size: 8.27 MB
- Stars: 39
- Watchers: 3
- Forks: 16
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MiniProfiler.Integrations
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](https://www.nuget.org/packages/MiniProfiler.Integrations/) / [MiniProfiler.Integrations.MySQL](https://www.nuget.org/packages/MiniProfiler.Integrations.MySQL/)
# Usage
Setup is in 3 simple steps:
### 1. Install package via PM
```
Install-Package MiniProfiler.Integrations
```### 2. Initialize connection with the custom profiler
```
var profiler = CustomDbProfiler.Current;
using (var dbConnection = ProfiledDbConnectionFactory.New(new SqlServerDbConnectionFactory(connectionString), profiler))
{
// DO YOUR WORKS
}
```### 3. Get all commands executed (Success / Fail)
```
var commands = profiler.GetCommands();
```### Support
If you like this project then please consider a donation as a thank you.