Skip to main content

ProfiledDbProviderFactory

Wrapper for a db provider factory to enable profiling

Assembly: ServiceStack.NetFramework.dll
View Source
Declaration
public class ProfiledDbProviderFactory : ProfiledProviderFactory

Inherited Properties

CanCreateDataSourceEnumerator

proxy

View Source
Declaration
public override bool CanCreateDataSourceEnumerator { get; }

Profiler

View Source
Declaration
protected IDbProfiler Profiler { get; }

WrappedFactory

View Source
Declaration
protected DbProviderFactory WrappedFactory { get; }

Fields

Instance

Every provider factory must have an Instance public field

View Source
Declaration
public static ProfiledDbProviderFactory Instance

Methods

CreateCommand()

proxy

View Source
Declaration
public override DbCommand CreateCommand()
Returns

System.Data.Common.DbCommand

CreateConnection()

proxy

View Source
Declaration
public override DbConnection CreateConnection()
Returns

System.Data.Common.DbConnection

Inherited Methods

CreateCommand()

proxy

View Source
Declaration
public override DbCommand CreateCommand()
Returns

System.Data.Common.DbCommand

CreateCommandBuilder()

proxy

View Source
Declaration
public override DbCommandBuilder CreateCommandBuilder()
Returns

System.Data.Common.DbCommandBuilder

CreateConnection()

proxy

View Source
Declaration
public override DbConnection CreateConnection()
Returns

System.Data.Common.DbConnection

CreateConnectionStringBuilder()

proxy

View Source
Declaration
public override DbConnectionStringBuilder CreateConnectionStringBuilder()
Returns

System.Data.Common.DbConnectionStringBuilder

CreateDataAdapter()

proxy

View Source
Declaration
public override DbDataAdapter CreateDataAdapter()
Returns

System.Data.Common.DbDataAdapter

CreateDataSourceEnumerator()

proxy

View Source
Declaration
public override DbDataSourceEnumerator CreateDataSourceEnumerator()
Returns

System.Data.Common.DbDataSourceEnumerator

CreateParameter()

proxy

View Source
Declaration
public override DbParameter CreateParameter()
Returns

System.Data.Common.DbParameter

CreatePermission(PermissionState)

proxy

View Source
Declaration
public override CodeAccessPermission CreatePermission(PermissionState state)
Returns

System.Security.CodeAccessPermission

Parameters
TypeName
System.Security.Permissions.PermissionStatestate

InitProfiledDbProviderFactory(IDbProfiler, DbProviderFactory)

Allow to re-init the provider factory.

View Source
Declaration
public void InitProfiledDbProviderFactory(IDbProfiler profiler, DbProviderFactory wrappedFactory)
Parameters
TypeName
ServiceStack.MiniProfiler.Data.IDbProfilerprofiler
System.Data.Common.DbProviderFactorywrappedFactory