SqlProfilerExtensions
Helper methods that allow operation on SqlProfilers, regardless of their instantiation.
Assembly: ServiceStack.NetFramework.dll
View Source
Declaration
public static class SqlProfilerExtensions
Methods
ExecuteStart(SqlProfiler, DbCommand, ExecuteType)
Tracks when 'command' is started.
View Source
Declaration
public static void ExecuteStart(this SqlProfiler sqlProfiler, DbCommand command, ExecuteType type)
Parameters
Type | Name |
---|---|
ServiceStack.MiniProfiler.SqlProfiler | sqlProfiler |
System.Data.Common.DbCommand | command |
ServiceStack.MiniProfiler.Data.ExecuteType | type |
ExecuteFinish(SqlProfiler, DbCommand, ExecuteType, DbDataReader)
Finishes profiling for 'command', recording durations.
View Source
Declaration
public static void ExecuteFinish(this SqlProfiler sqlProfiler, DbCommand command, ExecuteType type, DbDataReader reader = null)
Parameters
Type | Name |
---|---|
ServiceStack.MiniProfiler.SqlProfiler | sqlProfiler |
System.Data.Common.DbCommand | command |
ServiceStack.MiniProfiler.Data.ExecuteType | type |
System.Data.Common.DbDataReader | reader |
ReaderFinish(SqlProfiler, DbDataReader)
Called when 'reader' finishes its iterations and is closed.
View Source
Declaration
public static void ReaderFinish(this SqlProfiler sqlProfiler, DbDataReader reader)
Parameters
Type | Name |
---|---|
ServiceStack.MiniProfiler.SqlProfiler | sqlProfiler |
System.Data.Common.DbDataReader | reader |