Share via


RelationalCommandParameterObject Constructors

Definition

Overloads

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
Obsolete.

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.

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.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.

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger)

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.

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, Boolean)

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.

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, CommandSource)

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.

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

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.

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, Boolean, CommandSource)

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.

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs

Caution

Use the overload with the readerColumns parameter

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 (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger);
[System.Obsolete("Use the overload with the readerColumns parameter")]
public RelationalCommandParameterObject (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger);
new Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject
[<System.Obsolete("Use the overload with the readerColumns parameter")>]
new Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject
Public Sub New (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), context As DbContext, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command))

Parameters

connection
IRelationalConnection

The connection on which the command will execute.

parameterValues
IReadOnlyDictionary<String,Object>

The SQL parameter values to use, or null if none.

context
DbContext

The current DbContext instance, or null if it is not known.

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

A logger, or null if no logger is available.

Attributes

Applies to

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs

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 (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn> readerColumns, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger);
new Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject
Public Sub New (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), readerColumns As IReadOnlyList(Of ReaderColumn), context As DbContext, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command))

Parameters

connection
IRelationalConnection

The 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
DbContext

The current DbContext instance, or null if it is not known.

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

A logger, or null if no logger is available.

Applies to

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger)

Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs

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 (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object?>? parameterValues, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn>? readerColumns, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger? logger);
new Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger -> Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject
Public Sub New (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), readerColumns As IReadOnlyList(Of ReaderColumn), context As DbContext, logger As IRelationalCommandDiagnosticsLogger)

Parameters

connection
IRelationalConnection

The 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
DbContext

The current DbContext instance, or null if it is not known.

logger
IRelationalCommandDiagnosticsLogger

A logger, or null if no logger is available.

Applies to

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, Boolean)

Source:
RelationalCommandParameterObject.cs

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 (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn> readerColumns, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger, bool detailedErrorsEnabled);
new Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject
Public Sub New (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), readerColumns As IReadOnlyList(Of ReaderColumn), context As DbContext, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), detailedErrorsEnabled As Boolean)

Parameters

connection
IRelationalConnection

The 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
DbContext

The current DbContext instance, or null if it is not known.

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

A logger, or null if no logger is available.

detailedErrorsEnabled
Boolean

A value indicating if detailed errors are enabled.

Applies to

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, CommandSource)

Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs

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 (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object?>? parameterValues, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn>? readerColumns, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger? logger, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject
Public Sub New (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), readerColumns As IReadOnlyList(Of ReaderColumn), context As DbContext, logger As IRelationalCommandDiagnosticsLogger, commandSource As CommandSource)

Parameters

connection
IRelationalConnection

The 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
DbContext

The current DbContext instance, or null if it is not known.

logger
IRelationalCommandDiagnosticsLogger

A logger, or null if no logger is available.

commandSource
CommandSource

Source of the command.

Applies to

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs

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 (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object?>? parameterValues, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn>? readerColumns, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger? logger, bool detailedErrorsEnabled);
new Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject
Public Sub New (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), readerColumns As IReadOnlyList(Of ReaderColumn), context As DbContext, logger As IRelationalCommandDiagnosticsLogger, detailedErrorsEnabled As Boolean)

Parameters

connection
IRelationalConnection

The 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
DbContext

The current DbContext instance, or null if it is not known.

logger
IRelationalCommandDiagnosticsLogger

A logger, or null if no logger is available.

detailedErrorsEnabled
Boolean

A value indicating if detailed errors are enabled.

Applies to

RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, Boolean, CommandSource)

Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs
Source:
RelationalCommandParameterObject.cs

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 (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object?>? parameterValues, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn>? readerColumns, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger? logger, bool detailedErrorsEnabled, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
public RelationalCommandParameterObject (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object?>? parameterValues, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn?>? readerColumns, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger? logger, bool detailedErrorsEnabled, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.ReaderColumn> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger * bool * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject
Public Sub New (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), readerColumns As IReadOnlyList(Of ReaderColumn), context As DbContext, logger As IRelationalCommandDiagnosticsLogger, detailedErrorsEnabled As Boolean, commandSource As CommandSource)

Parameters

connection
IRelationalConnection

The 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
DbContext

The current DbContext instance, or null if it is not known.

logger
IRelationalCommandDiagnosticsLogger

A logger, or null if no logger is available.

detailedErrorsEnabled
Boolean

A value indicating if detailed errors are enabled.

commandSource
CommandSource

Source of the command.

Applies to