ColumnModificationParameters 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ColumnModificationParameters(IUpdateEntry, IProperty, IColumn, Func<String>, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean)
创建一个新的 ColumnModificationParameters 实例。
public ColumnModificationParameters (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IColumn column, Func<string> generateParameterName, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping, bool valueIsRead, bool valueIsWrite, bool columnIsKey, bool columnIsCondition, bool sensitiveLoggingEnabled);
new Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IColumn * Func<string> * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters
Public Sub New (entry As IUpdateEntry, property As IProperty, column As IColumn, generateParameterName As Func(Of String), typeMapping As RelationalTypeMapping, valueIsRead As Boolean, valueIsWrite As Boolean, columnIsKey As Boolean, columnIsCondition As Boolean, sensitiveLoggingEnabled As Boolean)
参数
- entry
- IUpdateEntry
表示 IUpdateEntry 正在修改的实体的 。
- property
- IProperty
映射到列的属性。
- column
- IColumn
要修改的列。
- typeMapping
- RelationalTypeMapping
要用于命令参数的关系类型映射。
- valueIsRead
- Boolean
指示是否必须从数据库中读取列的值。
- valueIsWrite
- Boolean
指示是否必须将值写入列的数据库。
- columnIsKey
- Boolean
指示列部分是主键还是备用键。
- columnIsCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
适用于
ColumnModificationParameters(IUpdateEntry, IProperty, IColumnBase, Func<String>, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean)
创建一个新的 ColumnModificationParameters 实例。
public ColumnModificationParameters (Microsoft.EntityFrameworkCore.Update.IUpdateEntry? entry, Microsoft.EntityFrameworkCore.Metadata.IProperty? property, Microsoft.EntityFrameworkCore.Metadata.IColumnBase column, Func<string> generateParameterName, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping, bool valueIsRead, bool valueIsWrite, bool columnIsKey, bool columnIsCondition, bool sensitiveLoggingEnabled);
new Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IColumnBase * Func<string> * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters
Public Sub New (entry As IUpdateEntry, property As IProperty, column As IColumnBase, generateParameterName As Func(Of String), typeMapping As RelationalTypeMapping, valueIsRead As Boolean, valueIsWrite As Boolean, columnIsKey As Boolean, columnIsCondition As Boolean, sensitiveLoggingEnabled As Boolean)
参数
- entry
- IUpdateEntry
表示 IUpdateEntry 正在修改的实体的 。
- property
- IProperty
映射到列的属性。
- column
- IColumnBase
要修改的列。
- typeMapping
- RelationalTypeMapping
要用于命令参数的关系类型映射。
- valueIsRead
- Boolean
指示是否必须从数据库中读取列的值。
- valueIsWrite
- Boolean
指示是否必须将值写入列的数据库。
- columnIsKey
- Boolean
指示列部分是主键还是备用键。
- columnIsCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
适用于
ColumnModificationParameters(IColumn, Object, Object, IProperty, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<Boolean>)
创建一个新的 ColumnModificationParameters 实例。
public ColumnModificationParameters (Microsoft.EntityFrameworkCore.Metadata.IColumn column, object? originalValue, object? value, Microsoft.EntityFrameworkCore.Metadata.IProperty? property, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping, bool read, bool write, bool key, bool condition, bool sensitiveLoggingEnabled, bool? isNullable = default);
new Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters : Microsoft.EntityFrameworkCore.Metadata.IColumn * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool * bool * bool * bool * bool * Nullable<bool> -> Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters
Public Sub New (column As IColumn, originalValue As Object, value As Object, property As IProperty, typeMapping As RelationalTypeMapping, read As Boolean, write As Boolean, key As Boolean, condition As Boolean, sensitiveLoggingEnabled As Boolean, Optional isNullable As Nullable(Of Boolean) = Nothing)
参数
- column
- IColumn
列。
- originalValue
- Object
映射到此列的属性的原始值。
- value
- Object
映射到此列的属性的当前值。
- property
- IProperty
映射到列的属性。
- typeMapping
- RelationalTypeMapping
要用于命令参数的关系类型映射。
- read
- Boolean
指示是否必须从数据库中读取列的值。
- write
- Boolean
指示是否必须将值写入列的数据库。
- key
- Boolean
指示列部分是主键还是备用键。
- condition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
适用于
ColumnModificationParameters(String, Object, IProperty, String, RelationalTypeMapping, String, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<Boolean>)
创建一个新 ColumnModificationParameters 实例,该实例专用于更新映射到 JSON 列的对象。
public ColumnModificationParameters (string columnName, object? value, Microsoft.EntityFrameworkCore.Metadata.IProperty? property, string? columnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping, string jsonPath, bool read, bool write, bool key, bool condition, bool sensitiveLoggingEnabled, bool? isNullable = default);
new Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters : string * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * string * bool * bool * bool * bool * bool * Nullable<bool> -> Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters
Public Sub New (columnName As String, value As Object, property As IProperty, columnType As String, typeMapping As RelationalTypeMapping, jsonPath As String, read As Boolean, write As Boolean, key As Boolean, condition As Boolean, sensitiveLoggingEnabled As Boolean, Optional isNullable As Nullable(Of Boolean) = Nothing)
参数
- columnName
- String
JSON 列的名称。
- value
- Object
位于给定 JSON 路径处的 JSON 元素的当前值。
- property
- IProperty
在 JSON 列单个标量属性修改的情况下,正在修改的标量属性为 null,否则为 null。
- columnType
- String
JSON 列的数据库类型。
- typeMapping
- RelationalTypeMapping
要用于命令参数的关系类型映射。
- jsonPath
- String
指向需要更新的 JSON 元素的 JSON 路径。
- read
- Boolean
指示是否必须从数据库中读取列的值。
- write
- Boolean
指示是否必须将值写入列的数据库。
- key
- Boolean
指示列部分是主键还是备用键。
- condition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
适用于
ColumnModificationParameters(String, Object, Object, IProperty, String, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<Boolean>)
创建一个新的 ColumnModificationParameters 实例。
public ColumnModificationParameters (string columnName, object? originalValue, object? value, Microsoft.EntityFrameworkCore.Metadata.IProperty? property, string? columnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping, bool read, bool write, bool key, bool condition, bool sensitiveLoggingEnabled, bool? isNullable = default);
new Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool * bool * bool * bool * bool * Nullable<bool> -> Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters
Public Sub New (columnName As String, originalValue As Object, value As Object, property As IProperty, columnType As String, typeMapping As RelationalTypeMapping, read As Boolean, write As Boolean, key As Boolean, condition As Boolean, sensitiveLoggingEnabled As Boolean, Optional isNullable As Nullable(Of Boolean) = Nothing)
参数
- columnName
- String
列的名称。
- originalValue
- Object
映射到此列的属性的原始值。
- value
- Object
映射到此列的属性的当前值。
- property
- IProperty
映射到列的属性。
- columnType
- String
列的数据库类型。
- typeMapping
- RelationalTypeMapping
要用于命令参数的关系类型映射。
- read
- Boolean
指示是否必须从数据库中读取列的值。
- write
- Boolean
指示是否必须将值写入列的数据库。
- key
- Boolean
指示列部分是主键还是备用键。
- condition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。