Freigeben über


RelationalDataReader.Initialize Methode

Definition

Initialisiert eine neue Instanz der RelationalDataReader-Klasse.

public virtual void Initialize (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection relationalConnection, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader reader, Guid commandId, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger? logger);
abstract member Initialize : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger -> unit
override this.Initialize : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger -> unit
Public Overridable Sub Initialize (relationalConnection As IRelationalConnection, command As DbCommand, reader As DbDataReader, commandId As Guid, logger As IRelationalCommandDiagnosticsLogger)

Parameter

relationalConnection
IRelationalConnection

Die relationale Verbindung.

command
DbCommand

Der ausgeführte Befehl.

reader
DbDataReader

Der zugrunde liegende Reader für das Resultset.

commandId
Guid

Eine Korrelations-ID, die die DbCommand verwendete instance identifiziert.

logger
IRelationalCommandDiagnosticsLogger

Die Diagnosequelle.

Gilt für: