Sprache

DbConnectionDispatcher Klasse

Definition

Wird für die Verteilervorgänge an eine DbConnection solche Weise verwendet, dass alle IDbConnectionInterceptor registrierten Aktivitäten DbInterception vor und nach ausführung des Vorgangs benachrichtigt werden. Instanzen dieser Klasse werden über die Dispatch Fluent-API abgerufen.

public class DbConnectionDispatcher
type DbConnectionDispatcher = class
Public Class DbConnectionDispatcher
Vererbung
DbConnectionDispatcher

Hinweise

Diese Klasse wird intern von Entity Framework bei der Interaktion mit DbConnection. Sie wird öffentlich bereitgestellt, sodass Code, der außerhalb der haupt-EF-Assemblys ausgeführt wird, sich für die Befehlsinterception/Ablaufverfolgung entscheiden kann. Dies geschieht in der Regel von EF-Anbietern, die Befehle im Auftrag von EF ausführen.

Methoden

Name Beschreibung
BeginTransaction(DbConnection, BeginTransactionInterceptionContext)

Sendet BeginningTransaction(DbConnection, BeginTransactionInterceptionContext) und BeganTransaction(DbConnection, BeginTransactionInterceptionContext) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Tätigen eines Anrufs an BeginTransaction(IsolationLevel).

Close(DbConnection, DbInterceptionContext)

Sendet Closing(DbConnection, DbConnectionInterceptionContext) und Closed(DbConnection, DbConnectionInterceptionContext) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Tätigen eines Anrufs an Close().

Dispose(DbConnection, DbInterceptionContext)

Sendet Disposing(DbConnection, DbConnectionInterceptionContext) und Disposed(DbConnection, DbConnectionInterceptionContext) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Tätigen eines Anrufs an Dispose().

EnlistTransaction(DbConnection, EnlistTransactionInterceptionContext)

Sendet EnlistingTransaction(DbConnection, EnlistTransactionInterceptionContext) und EnlistedTransaction(DbConnection, EnlistTransactionInterceptionContext) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Tätigen eines Anrufs an EnlistTransaction(Transaction).

Equals(Object)

Wird für die Verteilervorgänge an eine DbConnection solche Weise verwendet, dass alle IDbConnectionInterceptor registrierten Aktivitäten DbInterception vor und nach ausführung des Vorgangs benachrichtigt werden. Instanzen dieser Klasse werden über die Dispatch Fluent-API abgerufen.

GetConnectionString(DbConnection, DbInterceptionContext)

Sendet ConnectionStringGetting(DbConnection, DbConnectionInterceptionContext<String>) und ConnectionStringGot(DbConnection, DbConnectionInterceptionContext<String>) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Abrufen ConnectionString.

GetConnectionTimeout(DbConnection, DbInterceptionContext)

Sendet ConnectionTimeoutGetting(DbConnection, DbConnectionInterceptionContext<Int32>) und ConnectionTimeoutGot(DbConnection, DbConnectionInterceptionContext<Int32>) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Abrufen ConnectionTimeout.

GetDatabase(DbConnection, DbInterceptionContext)

Sendet DatabaseGetting(DbConnection, DbConnectionInterceptionContext<String>) und DatabaseGot(DbConnection, DbConnectionInterceptionContext<String>) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Abrufen Database.

GetDataSource(DbConnection, DbInterceptionContext)

Sendet DataSourceGetting(DbConnection, DbConnectionInterceptionContext<String>) und DataSourceGot(DbConnection, DbConnectionInterceptionContext<String>) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Abrufen DataSource.

GetHashCode()

Wird für die Verteilervorgänge an eine DbConnection solche Weise verwendet, dass alle IDbConnectionInterceptor registrierten Aktivitäten DbInterception vor und nach ausführung des Vorgangs benachrichtigt werden. Instanzen dieser Klasse werden über die Dispatch Fluent-API abgerufen.

GetServerVersion(DbConnection, DbInterceptionContext)

Sendet ServerVersionGetting(DbConnection, DbConnectionInterceptionContext<String>) und ServerVersionGot(DbConnection, DbConnectionInterceptionContext<String>) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Abrufen ServerVersion.

GetState(DbConnection, DbInterceptionContext)

Sendet StateGetting(DbConnection, DbConnectionInterceptionContext<ConnectionState>) und StateGot(DbConnection, DbConnectionInterceptionContext<ConnectionState>) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Abrufen State.

GetType()

Ruft die Type der aktuellen Instanz ab.

Open(DbConnection, DbInterceptionContext)

Sendet Opening(DbConnection, DbConnectionInterceptionContext) und Opened(DbConnection, DbConnectionInterceptionContext) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Tätigen eines Anrufs an Open().

OpenAsync(DbConnection, DbInterceptionContext, CancellationToken)

Sendet Opening(DbConnection, DbConnectionInterceptionContext) und Opened(DbConnection, DbConnectionInterceptionContext) an alle IDbConnectionInterceptor Registrierten vor DbInterception /nach dem Tätigen eines Anrufs an Open().

SetConnectionString(DbConnection, DbConnectionPropertyInterceptionContext<String>)

Sendet ConnectionStringSetting(DbConnection, DbConnectionPropertyInterceptionContext<String>) und ConnectionStringSet(DbConnection, DbConnectionPropertyInterceptionContext<String>) an alle IDbConnectionInterceptor registrierten vor DbInterception /nach der Einstellung ConnectionString.

ToString()

Wird für die Verteilervorgänge an eine DbConnection solche Weise verwendet, dass alle IDbConnectionInterceptor registrierten Aktivitäten DbInterception vor und nach ausführung des Vorgangs benachrichtigt werden. Instanzen dieser Klasse werden über die Dispatch Fluent-API abgerufen.

Gilt für: