共用方式為


RelationalDataReader.Initialize 方法

定義

初始化 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)

參數

relationalConnection
IRelationalConnection

關聯式連接。

command
DbCommand

已執行的命令。

reader
DbDataReader

結果集的基礎讀取器。

commandId
Guid

識別所使用實例的 DbCommand 相互關聯識別碼。

logger
IRelationalCommandDiagnosticsLogger

診斷來源。

適用於