ModificationCommandParameters 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ModificationCommandParameters(ITable, Boolean, Boolean, IComparer<IUpdateEntry>, Func<String>, IDiagnosticsLogger<DbLoggerCategory.Update>)
创建一个新的 ModificationCommandParameters 实例。
public ModificationCommandParameters (Microsoft.EntityFrameworkCore.Metadata.ITable table, bool sensitiveLoggingEnabled, bool detailedErrorsEnabled = false, System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry>? comparer = default, Func<string>? generateParameterName = default, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update>? logger = default);
new Microsoft.EntityFrameworkCore.Update.ModificationCommandParameters : Microsoft.EntityFrameworkCore.Metadata.ITable * bool * bool * System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> * Func<string> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> -> Microsoft.EntityFrameworkCore.Update.ModificationCommandParameters
Public Sub New (table As ITable, sensitiveLoggingEnabled As Boolean, Optional detailedErrorsEnabled As Boolean = false, Optional comparer As IComparer(Of IUpdateEntry) = Nothing, Optional generateParameterName As Func(Of String) = Nothing, Optional logger As IDiagnosticsLogger(Of DbLoggerCategory.Update) = Nothing)
参数
- table
- ITable
包含要修改的数据的表。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (,例如) 的数据库值。
- detailedErrorsEnabled
- Boolean
指示是否应记录详细错误。
- comparer
- IComparer<IUpdateEntry>
适用于
ModificationCommandParameters(String, String, Boolean, IComparer<IUpdateEntry>, Func<String>, IDiagnosticsLogger<DbLoggerCategory.Update>)
创建一个新的 ModificationCommandParameters 实例。
public ModificationCommandParameters (string tableName, string? schemaName, bool sensitiveLoggingEnabled, System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry>? comparer = default, Func<string>? generateParameterName = default, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update>? logger = default);
new Microsoft.EntityFrameworkCore.Update.ModificationCommandParameters : string * string * bool * System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> * Func<string> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> -> Microsoft.EntityFrameworkCore.Update.ModificationCommandParameters
Public Sub New (tableName As String, schemaName As String, sensitiveLoggingEnabled As Boolean, Optional comparer As IComparer(Of IUpdateEntry) = Nothing, Optional generateParameterName As Func(Of String) = Nothing, Optional logger As IDiagnosticsLogger(Of DbLoggerCategory.Update) = Nothing)
参数
- tableName
- String
包含要修改的数据的表的名称。
- schemaName
- String
包含表的架构,或使用 null
默认架构。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (,例如) 的数据库值。
- comparer
- IComparer<IUpdateEntry>
适用于
ModificationCommandParameters(ITable, IStoreStoredProcedure, Boolean, Boolean, IComparer<IUpdateEntry>, Func<String>, IDiagnosticsLogger<DbLoggerCategory.Update>)
创建一个新的 ModificationCommandParameters 实例。
public ModificationCommandParameters (Microsoft.EntityFrameworkCore.Metadata.ITable table, Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedure? storeStoredProcedure, bool sensitiveLoggingEnabled, bool detailedErrorsEnabled = false, System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry>? comparer = default, Func<string>? generateParameterName = default, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update>? logger = default);
new Microsoft.EntityFrameworkCore.Update.ModificationCommandParameters : Microsoft.EntityFrameworkCore.Metadata.ITable * Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedure * bool * bool * System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> * Func<string> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> -> Microsoft.EntityFrameworkCore.Update.ModificationCommandParameters
Public Sub New (table As ITable, storeStoredProcedure As IStoreStoredProcedure, sensitiveLoggingEnabled As Boolean, Optional detailedErrorsEnabled As Boolean = false, Optional comparer As IComparer(Of IUpdateEntry) = Nothing, Optional generateParameterName As Func(Of String) = Nothing, Optional logger As IDiagnosticsLogger(Of DbLoggerCategory.Update) = Nothing)
参数
- table
- ITable
包含要修改的数据的表。
- storeStoredProcedure
- IStoreStoredProcedure
用于更新数据的存储过程。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (,例如) 的数据库值。
- detailedErrorsEnabled
- Boolean
指示是否应记录详细错误。
- comparer
- IComparer<IUpdateEntry>