Skip to content

Enable you to log all sql commands by providing a custom IDbProfiler implemenation and some utility methods around MiniProfiler components

Notifications You must be signed in to change notification settings

burtonr/MiniProfiler.Integrations

 
 

Repository files navigation

MiniProfiler.Integrations

Provide custom IDbProfiler implemenation and some utility methods around MiniProfiler components

Usage

Install package via PM

Install-Package MiniProfiler.Integrations

Initialize connection with the custom profiler

var factory = new SqlServerDbConnectionFactory(connectionString);
using (var connection = DbConnectionFactoryHelper.New(factory, CustomDbProfiler.Current))
{
    try 
    {
        // DO YOUR WORKS
    }
}

Get commands executed (Success / Fail)

finally
{
    string commands = CustomDbProfiler.Current.ProfilerContext.GetCommands()
}

About

Enable you to log all sql commands by providing a custom IDbProfiler implemenation and some utility methods around MiniProfiler components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 65.1%
  • C# 34.9%