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
命令的來源。