ColumnModification 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ColumnModification(ColumnModificationParameters)
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
创建一个新的 ColumnModification 实例。
public ColumnModification (in Microsoft.EntityFrameworkCore.Update.ColumnModificationParameters columnModificationParameters);
new Microsoft.EntityFrameworkCore.Update.ColumnModification : ColumnModificationParameters -> Microsoft.EntityFrameworkCore.Update.ColumnModification
Public Sub New (ByRef columnModificationParameters As ColumnModificationParameters)
参数
- columnModificationParameters
- ColumnModificationParameters
创建参数。
适用于
ColumnModification(String, Object, Object, IProperty, Boolean, Boolean, Boolean, Boolean)
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
创建一个新的 ColumnModification 实例。
public ColumnModification (string columnName, object originalValue, object value, Microsoft.EntityFrameworkCore.Metadata.IProperty property, bool isRead, bool isWrite, bool isKey, bool isCondition);
new Microsoft.EntityFrameworkCore.Update.ColumnModification : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
Public Sub New (columnName As String, originalValue As Object, value As Object, property As IProperty, isRead As Boolean, isWrite As Boolean, isKey As Boolean, isCondition As Boolean)
参数
- columnName
- String
列的名称。
- originalValue
- Object
映射到此列的属性的原始值。
- value
- Object
获取或设置映射到此列的属性的当前值。
- property
- IProperty
映射到列的属性。
- isRead
- Boolean
指示是否必须从数据库中读取列的值。
- isWrite
- Boolean
指示是否必须将值写入列的数据库。
- isKey
- Boolean
指示列部分是主键还是备用键。
- isCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
适用于
ColumnModification(IUpdateEntry, IProperty, IRelationalPropertyAnnotations, Func<String>, Boolean, Boolean, Boolean, Boolean, Boolean)
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
创建一个新的 ColumnModification 实例。
public ColumnModification (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations propertyAnnotations, Func<string> generateParameterName, bool isRead, bool isWrite, bool isKey, bool isCondition, bool isConcurrencyToken);
new Microsoft.EntityFrameworkCore.Update.ColumnModification : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations * Func<string> * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
Public Sub New (entry As IUpdateEntry, property As IProperty, propertyAnnotations As IRelationalPropertyAnnotations, generateParameterName As Func(Of String), isRead As Boolean, isWrite As Boolean, isKey As Boolean, isCondition As Boolean, isConcurrencyToken As Boolean)
参数
- entry
- IUpdateEntry
表示 IUpdateEntry 正在修改的实体的 。
- property
- IProperty
映射到列的属性。
- propertyAnnotations
- IRelationalPropertyAnnotations
提供对列的特定于关系注释的访问。
- isRead
- Boolean
指示是否必须从数据库中读取列的值。
- isWrite
- Boolean
指示是否必须将值写入列的数据库。
- isKey
- Boolean
指示列部分是主键还是备用键。
- isCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- isConcurrencyToken
- Boolean
指示列是否充当乐观并发标记。
适用于
ColumnModification(IUpdateEntry, IProperty, Func<String>, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
注意
Use the constructor with column
注意
Use the constructor with columnModificationParameters
创建一个新的 ColumnModification 实例。
public ColumnModification (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Func<string> generateParameterName, bool isRead, bool isWrite, bool isKey, bool isCondition, bool isConcurrencyToken, bool sensitiveLoggingEnabled);
[System.Obsolete("Use the constructor with column")]
public ColumnModification (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Func<string> generateParameterName, bool isRead, bool isWrite, bool isKey, bool isCondition, bool isConcurrencyToken, bool sensitiveLoggingEnabled);
[System.Obsolete("Use the constructor with columnModificationParameters")]
public ColumnModification (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Func<string> generateParameterName, bool isRead, bool isWrite, bool isKey, bool isCondition, bool isConcurrencyToken, bool sensitiveLoggingEnabled);
new Microsoft.EntityFrameworkCore.Update.ColumnModification : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Metadata.IProperty * Func<string> * bool * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
[<System.Obsolete("Use the constructor with column")>]
new Microsoft.EntityFrameworkCore.Update.ColumnModification : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Metadata.IProperty * Func<string> * bool * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
[<System.Obsolete("Use the constructor with columnModificationParameters")>]
new Microsoft.EntityFrameworkCore.Update.ColumnModification : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Metadata.IProperty * Func<string> * bool * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
Public Sub New (entry As IUpdateEntry, property As IProperty, generateParameterName As Func(Of String), isRead As Boolean, isWrite As Boolean, isKey As Boolean, isCondition As Boolean, isConcurrencyToken As Boolean, sensitiveLoggingEnabled As Boolean)
参数
- entry
- IUpdateEntry
表示 IUpdateEntry 正在修改的实体的 。
- property
- IProperty
映射到列的属性。
- isRead
- Boolean
指示是否必须从数据库中读取列的值。
- isWrite
- Boolean
指示是否必须将值写入列的数据库。
- isKey
- Boolean
指示列部分是主键还是备用键。
- isCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- isConcurrencyToken
- Boolean
指示列是否充当乐观并发标记。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
- 属性
适用于
ColumnModification(String, Object, Object, IProperty, Boolean, Boolean, Boolean, Boolean, Boolean)
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
注意
Use the constructor with columnType
注意
Use the constructor with columnModificationParameters
创建一个新的 ColumnModification 实例。
public ColumnModification (string columnName, object originalValue, object value, Microsoft.EntityFrameworkCore.Metadata.IProperty property, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled);
[System.Obsolete("Use the constructor with columnType")]
public ColumnModification (string columnName, object originalValue, object value, Microsoft.EntityFrameworkCore.Metadata.IProperty property, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled);
[System.Obsolete("Use the constructor with columnModificationParameters")]
public ColumnModification (string columnName, object? originalValue, object? value, Microsoft.EntityFrameworkCore.Metadata.IProperty? property, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled);
new Microsoft.EntityFrameworkCore.Update.ColumnModification : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
[<System.Obsolete("Use the constructor with columnType")>]
new Microsoft.EntityFrameworkCore.Update.ColumnModification : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
[<System.Obsolete("Use the constructor with columnModificationParameters")>]
new Microsoft.EntityFrameworkCore.Update.ColumnModification : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
Public Sub New (columnName As String, originalValue As Object, value As Object, property As IProperty, isRead As Boolean, isWrite As Boolean, isKey As Boolean, isCondition As Boolean, sensitiveLoggingEnabled As Boolean)
参数
- columnName
- String
列的名称。
- originalValue
- Object
映射到此列的属性的原始值。
- value
- Object
获取或设置映射到此列的属性的当前值。
- property
- IProperty
映射到列的属性。
- isRead
- Boolean
指示是否必须从数据库中读取列的值。
- isWrite
- Boolean
指示是否必须将值写入列的数据库。
- isKey
- Boolean
指示列部分是主键还是备用键。
- isCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
- 属性
适用于
ColumnModification(IUpdateEntry, IProperty, IColumn, Func<String>, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean)
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
注意
Use the constructor with columnModificationParameters
创建一个新的 ColumnModification 实例。
public ColumnModification (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IColumn column, Func<string> generateParameterName, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled);
[System.Obsolete("Use the constructor with columnModificationParameters")]
public ColumnModification (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IColumn column, Func<string> generateParameterName, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled);
new Microsoft.EntityFrameworkCore.Update.ColumnModification : 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.ColumnModification
[<System.Obsolete("Use the constructor with columnModificationParameters")>]
new Microsoft.EntityFrameworkCore.Update.ColumnModification : 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.ColumnModification
Public Sub New (entry As IUpdateEntry, property As IProperty, column As IColumn, generateParameterName As Func(Of String), typeMapping As RelationalTypeMapping, isRead As Boolean, isWrite As Boolean, isKey As Boolean, isCondition As Boolean, sensitiveLoggingEnabled As Boolean)
参数
- entry
- IUpdateEntry
表示 IUpdateEntry 正在修改的实体的 。
- property
- IProperty
映射到列的属性。
- column
- IColumn
要修改的列。
- typeMapping
- RelationalTypeMapping
要用于命令参数的关系类型映射。
- isRead
- Boolean
指示是否必须从数据库中读取列的值。
- isWrite
- Boolean
指示是否必须将值写入列的数据库。
- isKey
- Boolean
指示列部分是主键还是备用键。
- isCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
- 属性
适用于
ColumnModification(String, Object, Object, IProperty, String, Boolean, Boolean, Boolean, Boolean, Boolean)
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
注意
Use the constructor with type mapping
注意
Use the constructor with columnModificationParameters
创建一个新的 ColumnModification 实例。
[System.Obsolete("Use the constructor with type mapping")]
public ColumnModification (string columnName, object originalValue, object value, Microsoft.EntityFrameworkCore.Metadata.IProperty property, string columnType, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled);
[System.Obsolete("Use the constructor with columnModificationParameters")]
public ColumnModification (string columnName, object? originalValue, object? value, Microsoft.EntityFrameworkCore.Metadata.IProperty? property, string? columnType, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled);
[<System.Obsolete("Use the constructor with type mapping")>]
new Microsoft.EntityFrameworkCore.Update.ColumnModification : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * string * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
[<System.Obsolete("Use the constructor with columnModificationParameters")>]
new Microsoft.EntityFrameworkCore.Update.ColumnModification : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * string * bool * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Update.ColumnModification
Public Sub New (columnName As String, originalValue As Object, value As Object, property As IProperty, columnType As String, isRead As Boolean, isWrite As Boolean, isKey As Boolean, isCondition As Boolean, sensitiveLoggingEnabled As Boolean)
参数
- columnName
- String
列的名称。
- originalValue
- Object
映射到此列的属性的原始值。
- value
- Object
获取或设置映射到此列的属性的当前值。
- property
- IProperty
映射到列的属性。
- columnType
- String
列的数据库类型。
- isRead
- Boolean
指示是否必须从数据库中读取列的值。
- isWrite
- Boolean
指示是否必须将值写入列的数据库。
- isKey
- Boolean
指示列部分是主键还是备用键。
- isCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
- 属性
适用于
ColumnModification(String, Object, Object, IProperty, String, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<Boolean>)
- Source:
- ColumnModification.cs
- Source:
- ColumnModification.cs
注意
Use the constructor with columnModificationParameters
创建一个新的 ColumnModification 实例。
public ColumnModification (string columnName, object originalValue, object value, Microsoft.EntityFrameworkCore.Metadata.IProperty property, string columnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled, bool? isNullable = default);
[System.Obsolete("Use the constructor with columnModificationParameters")]
public ColumnModification (string columnName, object? originalValue, object? value, Microsoft.EntityFrameworkCore.Metadata.IProperty? property, string? columnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping, bool isRead, bool isWrite, bool isKey, bool isCondition, bool sensitiveLoggingEnabled, bool? isNullable = default);
new Microsoft.EntityFrameworkCore.Update.ColumnModification : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool * bool * bool * bool * bool * Nullable<bool> -> Microsoft.EntityFrameworkCore.Update.ColumnModification
[<System.Obsolete("Use the constructor with columnModificationParameters")>]
new Microsoft.EntityFrameworkCore.Update.ColumnModification : string * obj * obj * Microsoft.EntityFrameworkCore.Metadata.IProperty * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool * bool * bool * bool * bool * Nullable<bool> -> Microsoft.EntityFrameworkCore.Update.ColumnModification
Public Sub New (columnName As String, originalValue As Object, value As Object, property As IProperty, columnType As String, typeMapping As RelationalTypeMapping, isRead As Boolean, isWrite As Boolean, isKey As Boolean, isCondition As Boolean, sensitiveLoggingEnabled As Boolean, Optional isNullable As Nullable(Of Boolean) = Nothing)
参数
- columnName
- String
列的名称。
- originalValue
- Object
映射到此列的属性的原始值。
- value
- Object
获取或设置映射到此列的属性的当前值。
- property
- IProperty
映射到列的属性。
- columnType
- String
列的数据库类型。
- typeMapping
- RelationalTypeMapping
要用于命令参数的关系类型映射。
- isRead
- Boolean
指示是否必须从数据库中读取列的值。
- isWrite
- Boolean
指示是否必须将值写入列的数据库。
- isKey
- Boolean
指示列部分是主键还是备用键。
- isCondition
- Boolean
指示更新时是否在 子句中使用 WHERE
列。
- sensitiveLoggingEnabled
- Boolean
指示是否可以记录潜在的敏感数据 (例如数据库值) 。
- 属性