RelationalCommandParameterObject 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
注意
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);
[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))
参数
- connection
- IRelationalConnection
将对其执行命令的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
要使用的 SQL 参数值;如果没有,则为 null。
记录器;如果没有可用的记录器,则为 null。
- 属性
适用于
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
为给定参数创建新的参数对象。
此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。
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))
参数
- connection
- IRelationalConnection
将对其执行命令的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
要使用的 SQL 参数值;如果没有,则为 null。
- readerColumns
- IReadOnlyList<ReaderColumn>
需要缓冲读取器时所需的列;否则为 null。
记录器;如果没有可用的记录器,则为 null。
适用于
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger)
为给定参数创建新的参数对象。
此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。
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)
参数
- connection
- IRelationalConnection
将对其执行命令的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
要使用的 SQL 参数值;如果没有, null
则为 。
- readerColumns
- IReadOnlyList<ReaderColumn>
如果需要缓冲读取器,则为预期的列, null
否则为 。
记录器; null
如果没有可用的记录器,则为 。
适用于
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, Boolean)
为给定参数创建新的参数对象。
此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。
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)
参数
- connection
- IRelationalConnection
将对其执行命令的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
要使用的 SQL 参数值;如果没有,则为 null。
- readerColumns
- IReadOnlyList<ReaderColumn>
需要缓冲读取器时所需的列;否则为 null。
记录器;如果没有可用的记录器,则为 null。
- detailedErrorsEnabled
- Boolean
一个值,该值指示是否启用了详细错误。
适用于
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, 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, 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)
参数
- connection
- IRelationalConnection
将对其执行命令的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
要使用的 SQL 参数值;如果没有,则为 null。
- readerColumns
- IReadOnlyList<ReaderColumn>
需要缓冲读取器时所需的列;否则为 null。
记录器;如果没有可用的记录器,则为 null。
- commandSource
- CommandSource
命令的源。
适用于
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)
为给定参数创建新的参数对象。
此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。
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)
参数
- connection
- IRelationalConnection
将对其执行命令的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
要使用的 SQL 参数值;如果没有,则为 null。
- readerColumns
- IReadOnlyList<ReaderColumn>
需要缓冲读取器时所需的列;否则为 null。
记录器;如果没有可用的记录器,则为 null。
- detailedErrorsEnabled
- Boolean
一个值,该值指示是否启用了详细错误。
适用于
RelationalCommandParameterObject(IRelationalConnection, IReadOnlyDictionary<String, Object>, IReadOnlyList<ReaderColumn>, DbContext, IRelationalCommandDiagnosticsLogger, Boolean, 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);
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)
参数
- connection
- IRelationalConnection
将对其执行命令的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
要使用的 SQL 参数值;如果没有,则为 null。
- readerColumns
- IReadOnlyList<ReaderColumn>
需要缓冲读取器时所需的列;否则为 null。
记录器;如果没有可用的记录器,则为 null。
- detailedErrorsEnabled
- Boolean
一个值,该值指示是否启用了详细错误。
- commandSource
- CommandSource
命令的源。