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

一个关联 ID,用于标识正在使用的 DbCommand 实例。

适用于