Skip to main content

ProfiledProviderFactory

Wrapper for a db provider factory to enable profiling

Assembly: ServiceStack.Common.dll
View Source
Declaration
public class ProfiledProviderFactory : DbProviderFactory

Properties

Profiler

View Source
Declaration
protected IDbProfiler Profiler { get; }

WrappedFactory

View Source
Declaration
protected DbProviderFactory WrappedFactory { get; }

CanCreateDataSourceEnumerator

proxy

View Source
Declaration
public override bool CanCreateDataSourceEnumerator { get; }

Fields

Instance

Every provider factory must have an Instance public field

View Source
Declaration
public static ProfiledProviderFactory Instance

Methods

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

CreateDataSourceEnumerator()

proxy

View Source
Declaration
public override DbDataSourceEnumerator CreateDataSourceEnumerator()
Returns

System.Data.Common.DbDataSourceEnumerator

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

CreateParameter()

proxy

View Source
Declaration
public override DbParameter CreateParameter()
Returns

System.Data.Common.DbParameter

CreateConnectionStringBuilder()

proxy

View Source
Declaration
public override DbConnectionStringBuilder CreateConnectionStringBuilder()
Returns

System.Data.Common.DbConnectionStringBuilder

CreateCommandBuilder()

proxy

View Source
Declaration
public override DbCommandBuilder CreateCommandBuilder()
Returns

System.Data.Common.DbCommandBuilder

CreateDataAdapter()

proxy

View Source
Declaration
public override DbDataAdapter CreateDataAdapter()
Returns

System.Data.Common.DbDataAdapter

CreatePermission(PermissionState)

proxy

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

System.Security.CodeAccessPermission

Parameters
TypeName
System.Security.Permissions.PermissionStatestate