Compartilhar via


RelationalDataReader.Initialize Método

Definição

Inicializa uma nova instância da classe RelationalDataReader.

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)

Parâmetros

relationalConnection
IRelationalConnection

A conexão relacional.

command
DbCommand

O comando que foi executado.

reader
DbDataReader

O leitor subjacente para o conjunto de resultados.

commandId
Guid

Uma ID de correlação que identifica a DbCommand instância que está sendo usada.

logger
IRelationalCommandDiagnosticsLogger

A fonte de diagnóstico.

Aplica-se a