Skip to main content

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
TypeName
ServiceStack.MiniProfiler.SqlProfilersqlProfiler
System.Data.Common.DbCommandcommand
ServiceStack.MiniProfiler.Data.ExecuteTypetype

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
TypeName
ServiceStack.MiniProfiler.SqlProfilersqlProfiler
System.Data.Common.DbCommandcommand
ServiceStack.MiniProfiler.Data.ExecuteTypetype
System.Data.Common.DbDataReaderreader

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
TypeName
ServiceStack.MiniProfiler.SqlProfilersqlProfiler
System.Data.Common.DbDataReaderreader