ColumnModification 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ColumnModification(ColumnModificationParameters)
建立新的 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)
建立新的 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)
建立新的 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)
警告
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)
警告
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)
警告
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)
警告
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>)
警告
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
指出是否可以記錄可能敏感性資料 (例如資料庫值) 。
- 屬性