RelationalCommand.CreateRelationalDataReader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateRelationalDataReader() |
Creates a new RelationalDataReader to be used by ExecuteReader(RelationalCommandParameterObject) and ExecuteReaderAsync(RelationalCommandParameterObject, CancellationToken). The returned RelationalDataReader may get used more for multiple queries, and will be re-initialized each time via Initialize(IRelationalConnection, DbCommand, DbDataReader, Guid, IRelationalCommandDiagnosticsLogger). This method is typically used by database providers (and other extensions). It is generally not used in application code. |
CreateRelationalDataReader(IRelationalConnection, DbCommand, DbDataReader, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Command>) |
Creates a new RelationalDataReader to be used by ExecuteReader(RelationalCommandParameterObject) and ExecuteReaderAsync(RelationalCommandParameterObject, CancellationToken). This method is typically used by database providers (and other extensions). It is generally not used in application code. |
CreateRelationalDataReader()
Creates a new RelationalDataReader to be used by ExecuteReader(RelationalCommandParameterObject) and ExecuteReaderAsync(RelationalCommandParameterObject, CancellationToken). The returned RelationalDataReader may get used more for multiple queries, and will be re-initialized each time via Initialize(IRelationalConnection, DbCommand, DbDataReader, Guid, IRelationalCommandDiagnosticsLogger).
This method is typically used by database providers (and other extensions). It is generally not used in application code.
protected virtual Microsoft.EntityFrameworkCore.Storage.RelationalDataReader CreateRelationalDataReader ();
abstract member CreateRelationalDataReader : unit -> Microsoft.EntityFrameworkCore.Storage.RelationalDataReader
override this.CreateRelationalDataReader : unit -> Microsoft.EntityFrameworkCore.Storage.RelationalDataReader
Protected Overridable Function CreateRelationalDataReader () As RelationalDataReader
Returns
The created RelationalDataReader.
Applies to
CreateRelationalDataReader(IRelationalConnection, DbCommand, DbDataReader, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
Creates a new RelationalDataReader to be used by ExecuteReader(RelationalCommandParameterObject) and ExecuteReaderAsync(RelationalCommandParameterObject, CancellationToken).
This method is typically used by database providers (and other extensions). It is generally not used in application code.
protected virtual Microsoft.EntityFrameworkCore.Storage.RelationalDataReader CreateRelationalDataReader (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader reader, Guid commandId, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger);
abstract member CreateRelationalDataReader : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Storage.RelationalDataReader
override this.CreateRelationalDataReader : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Storage.RelationalDataReader
Protected Overridable Function CreateRelationalDataReader (connection As IRelationalConnection, command As DbCommand, reader As DbDataReader, commandId As Guid, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As RelationalDataReader
Parameters
- connection
- IRelationalConnection
The connection, to pass to the RelationalDataReader constructor.
- command
- DbCommand
The command that was executed, to pass to the RelationalDataReader constructor.
- reader
- DbDataReader
The underlying reader for the result set, to pass to the RelationalDataReader constructor.
- commandId
- Guid
A correlation ID that identifies the DbCommand instance being used, to pass to the RelationalDataReader constructor.
The diagnostic source, to pass to the RelationalDataReader constructor.
Returns
The created RelationalDataReader.
Applies to
Entity Framework