Skip to main content

ProfiledDbConnection

Wraps a database connection, allowing sql execution timings to be collected when a ServiceStack.MiniProfiler session is started.

Assembly: ServiceStack.NetFramework.dll
View Source
Declaration
public class ProfiledDbConnection : ProfiledConnection, IComponent, IDbConnection, IDisposable, IHasDbConnection, ICloneable

Properties

_conn

This will be made private; use ServiceStack.MiniProfiler.Data.ProfiledConnection.InnerConnection

View Source
Declaration
protected DbConnection _conn { get; set; }

_profiler

This will be made private; use ServiceStack.MiniProfiler.MiniProfiler

View Source
Declaration
protected IDbProfiler _profiler { get; set; }

autoDisposeConnection

View Source
Declaration
protected bool autoDisposeConnection { get; set; }

Inherited Properties

AutoDisposeConnection

View Source
Declaration
protected bool AutoDisposeConnection { get; set; }

CanRaiseEvents

View Source
Declaration
protected override bool CanRaiseEvents { get; }

ConnectionString

View Source
Declaration
public override string ConnectionString { get; set; }

ConnectionTimeout

View Source
Declaration
public override int ConnectionTimeout { get; }

Database

View Source
Declaration
public override string Database { get; }

DataSource

View Source
Declaration
public override string DataSource { get; }

DbConnection

View Source
Declaration
public IDbConnection DbConnection { get; }

InnerConnection

The underlying, real database connection to your db provider.

View Source
Declaration
public DbConnection InnerConnection { get; protected set; }

Profiler

The current profiler instance; could be null.

View Source
Declaration
public IDbProfiler Profiler { get; protected set; }

ServerVersion

View Source
Declaration
public override string ServerVersion { get; }

State

View Source
Declaration
public override ConnectionState State { get; }

WrappedConnection

The raw connection this is wrapping

View Source
Declaration
public DbConnection WrappedConnection { get; }

Methods

CreateDbCommand()

View Source
Declaration
protected override DbCommand CreateDbCommand()
Returns

System.Data.Common.DbCommand

Clone()

View Source
Declaration
public ProfiledDbConnection Clone()
Returns

ServiceStack.MiniProfiler.Data.ProfiledDbConnection

ICloneable.Clone()

View Source
Declaration
object ICloneable.Clone()
Returns

System.Object

Inherited Methods

BeginDbTransaction(IsolationLevel)

View Source
Declaration
protected override DbTransaction BeginDbTransaction(IsolationLevel isolationLevel)
Returns

System.Data.Common.DbTransaction

Parameters
TypeName
System.Data.IsolationLevelisolationLevel

ChangeDatabase(String)

View Source
Declaration
public override void ChangeDatabase(string databaseName)
Parameters
TypeName
System.StringdatabaseName

Close()

View Source
Declaration
public override void Close()

CreateDbCommand()

View Source
Declaration
protected override DbCommand CreateDbCommand()
Returns

System.Data.Common.DbCommand

Dispose(Boolean)

View Source
Declaration
protected override void Dispose(bool disposing)
Parameters
TypeName
System.Booleandisposing

GetSchema()

View Source
Declaration
public override DataTable GetSchema()
Returns

System.Data.DataTable

GetSchema(String)

View Source
Declaration
public override DataTable GetSchema(string collectionName)
Returns

System.Data.DataTable

Parameters
TypeName
System.StringcollectionName

GetSchema(String, String[])

View Source
Declaration
public override DataTable GetSchema(string collectionName, string[] restrictionValues)
Returns

System.Data.DataTable

Parameters
TypeName
System.StringcollectionName
System.String[]restrictionValues

Open()

View Source
Declaration
public override void Open()

Implements