Struct RelationalCommandParameterObject
- Namespace
- Microsoft.EntityFrameworkCore.Storage
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
A parameter object for the execution methods on RelationalCommand.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public readonly struct RelationalCommandParameterObject
- Inherited Members
Constructors
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<string, object>, IReadOnlyList<ReaderColumn>, DbContext, IDiagnosticsLogger<Command>)
Creates a new parameter object for the given parameters.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public RelationalCommandParameterObject(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues, IReadOnlyList<ReaderColumn> readerColumns, DbContext context, IDiagnosticsLogger<DbLoggerCategory.Database.Command> logger)
Parameters
connection
IRelationalConnectionThe connection on which the command will execute.
parameterValues
IReadOnlyDictionary<string, object>The SQL parameter values to use, or null if none.
readerColumns
IReadOnlyList<ReaderColumn>The expected columns if the reader needs to be buffered, or null otherwise.
context
DbContextThe current Microsoft.EntityFrameworkCore.DbContext instance, or null if it is not known.
logger
IDiagnosticsLogger<Command>A logger, or null if no logger is available.
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<string, object>, IReadOnlyList<ReaderColumn>, DbContext, IDiagnosticsLogger<Command>, bool)
Creates a new parameter object for the given parameters.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public RelationalCommandParameterObject(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues, IReadOnlyList<ReaderColumn> readerColumns, DbContext context, IDiagnosticsLogger<DbLoggerCategory.Database.Command> logger, bool detailedErrorsEnabled)
Parameters
connection
IRelationalConnectionThe connection on which the command will execute.
parameterValues
IReadOnlyDictionary<string, object>The SQL parameter values to use, or null if none.
readerColumns
IReadOnlyList<ReaderColumn>The expected columns if the reader needs to be buffered, or null otherwise.
context
DbContextThe current Microsoft.EntityFrameworkCore.DbContext instance, or null if it is not known.
logger
IDiagnosticsLogger<Command>A logger, or null if no logger is available.
detailedErrorsEnabled
boolA value indicating if detailed errors are enabled.
Properties
Connection
The connection on which the command will execute.
public IRelationalConnection Connection { get; }
Property Value
Context
The current Microsoft.EntityFrameworkCore.DbContext instance, or null if it is not known.
public DbContext Context { get; }
Property Value
- DbContext
DetailedErrorsEnabled
A value indicating if detailed errors are enabled.
public bool DetailedErrorsEnabled { get; }
Property Value
Logger
A logger, or null if no logger is available.
public IDiagnosticsLogger<DbLoggerCategory.Database.Command> Logger { get; }
Property Value
- IDiagnosticsLogger<Command>
ParameterValues
The SQL parameter values to use, or null if none.
public IReadOnlyDictionary<string, object> ParameterValues { get; }
Property Value
ReaderColumns
The expected columns if the reader needs to be buffered, or null otherwise.
public IReadOnlyList<ReaderColumn> ReaderColumns { get; }