Share via


ColumnModification Constructors

Definition

Overloads

ColumnModification(ColumnModificationParameters)

Creates a new ColumnModification instance.

ColumnModification(String, Object, Object, IProperty, Boolean, Boolean, Boolean, Boolean)

Creates a new ColumnModification instance.

ColumnModification(IUpdateEntry, IProperty, IRelationalPropertyAnnotations, Func<String>, Boolean, Boolean, Boolean, Boolean, Boolean)

Creates a new ColumnModification instance.

ColumnModification(IUpdateEntry, IProperty, Func<String>, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Obsolete.
Obsolete.

Creates a new ColumnModification instance.

ColumnModification(String, Object, Object, IProperty, Boolean, Boolean, Boolean, Boolean, Boolean)
Obsolete.
Obsolete.

Creates a new ColumnModification instance.

ColumnModification(IUpdateEntry, IProperty, IColumn, Func<String>, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean)
Obsolete.

Creates a new ColumnModification instance.

ColumnModification(String, Object, Object, IProperty, String, Boolean, Boolean, Boolean, Boolean, Boolean)
Obsolete.
Obsolete.

Creates a new ColumnModification instance.

ColumnModification(String, Object, Object, IProperty, String, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<Boolean>)
Obsolete.

Creates a new ColumnModification instance.

ColumnModification(ColumnModificationParameters)

Creates a new ColumnModification instance.

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)

Parameters

columnModificationParameters
ColumnModificationParameters

Creation parameters.

Applies to

ColumnModification(String, Object, Object, IProperty, Boolean, Boolean, Boolean, Boolean)

Creates a new ColumnModification instance.

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)

Parameters

columnName
String

The name of the column.

originalValue
Object

The original value of the property mapped to this column.

value
Object

Gets or sets the current value of the property mapped to this column.

property
IProperty

The property that maps to the column.

isRead
Boolean

Indicates whether or not a value must be read from the database for the column.

isWrite
Boolean

Indicates whether or not a value must be written to the database for the column.

isKey
Boolean

Indicates whether or not the column part of a primary or alternate key.

isCondition
Boolean

Indicates whether or not the column is used in the WHERE clause when updating.

Applies to

ColumnModification(IUpdateEntry, IProperty, IRelationalPropertyAnnotations, Func<String>, Boolean, Boolean, Boolean, Boolean, Boolean)

Creates a new ColumnModification instance.

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)

Parameters

entry
IUpdateEntry

The IUpdateEntry that represents the entity that is being modified.

property
IProperty

The property that maps to the column.

propertyAnnotations
IRelationalPropertyAnnotations

Provides access to relational-specific annotations for the column.

generateParameterName
Func<String>

A delegate for generating parameter names for the update SQL.

isRead
Boolean

Indicates whether or not a value must be read from the database for the column.

isWrite
Boolean

Indicates whether or not a value must be written to the database for the column.

isKey
Boolean

Indicates whether or not the column part of a primary or alternate key.

isCondition
Boolean

Indicates whether or not the column is used in the WHERE clause when updating.

isConcurrencyToken
Boolean

Indicates whether or not the column is acting as an optimistic concurrency token.

Applies to

ColumnModification(IUpdateEntry, IProperty, Func<String>, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)

Caution

Use the constructor with column

Caution

Use the constructor with columnModificationParameters

Creates a new ColumnModification instance.

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)

Parameters

entry
IUpdateEntry

The IUpdateEntry that represents the entity that is being modified.

property
IProperty

The property that maps to the column.

generateParameterName
Func<String>

A delegate for generating parameter names for the update SQL.

isRead
Boolean

Indicates whether a value must be read from the database for the column.

isWrite
Boolean

Indicates whether a value must be written to the database for the column.

isKey
Boolean

Indicates whether the column part of a primary or alternate key.

isCondition
Boolean

Indicates whether the column is used in the WHERE clause when updating.

isConcurrencyToken
Boolean

Indicates whether the column is acting as an optimistic concurrency token.

sensitiveLoggingEnabled
Boolean

Indicates whether potentially sensitive data (e.g. database values) can be logged.

Attributes

Applies to

ColumnModification(String, Object, Object, IProperty, Boolean, Boolean, Boolean, Boolean, Boolean)

Caution

Use the constructor with columnType

Caution

Use the constructor with columnModificationParameters

Creates a new ColumnModification instance.

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)

Parameters

columnName
String

The name of the column.

originalValue
Object

The original value of the property mapped to this column.

value
Object

Gets or sets the current value of the property mapped to this column.

property
IProperty

The property that maps to the column.

isRead
Boolean

Indicates whether a value must be read from the database for the column.

isWrite
Boolean

Indicates whether a value must be written to the database for the column.

isKey
Boolean

Indicates whether the column part of a primary or alternate key.

isCondition
Boolean

Indicates whether the column is used in the WHERE clause when updating.

sensitiveLoggingEnabled
Boolean

Indicates whether potentially sensitive data (e.g. database values) can be logged.

Attributes

Applies to

ColumnModification(IUpdateEntry, IProperty, IColumn, Func<String>, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean)

Caution

Use the constructor with columnModificationParameters

Creates a new ColumnModification instance.

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)

Parameters

entry
IUpdateEntry

The IUpdateEntry that represents the entity that is being modified.

property
IProperty

The property that maps to the column.

column
IColumn

The column to be modified.

generateParameterName
Func<String>

A delegate for generating parameter names for the update SQL.

typeMapping
RelationalTypeMapping

The relational type mapping to be used for the command parameter.

isRead
Boolean

Indicates whether a value must be read from the database for the column.

isWrite
Boolean

Indicates whether a value must be written to the database for the column.

isKey
Boolean

Indicates whether the column part of a primary or alternate key.

isCondition
Boolean

Indicates whether the column is used in the WHERE clause when updating.

sensitiveLoggingEnabled
Boolean

Indicates whether potentially sensitive data (e.g. database values) can be logged.

Attributes

Applies to

ColumnModification(String, Object, Object, IProperty, String, Boolean, Boolean, Boolean, Boolean, Boolean)

Caution

Use the constructor with type mapping

Caution

Use the constructor with columnModificationParameters

Creates a new ColumnModification instance.

[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)

Parameters

columnName
String

The name of the column.

originalValue
Object

The original value of the property mapped to this column.

value
Object

Gets or sets the current value of the property mapped to this column.

property
IProperty

The property that maps to the column.

columnType
String

The database type of the column.

isRead
Boolean

Indicates whether a value must be read from the database for the column.

isWrite
Boolean

Indicates whether a value must be written to the database for the column.

isKey
Boolean

Indicates whether the column part of a primary or alternate key.

isCondition
Boolean

Indicates whether the column is used in the WHERE clause when updating.

sensitiveLoggingEnabled
Boolean

Indicates whether potentially sensitive data (e.g. database values) can be logged.

Attributes

Applies to

ColumnModification(String, Object, Object, IProperty, String, RelationalTypeMapping, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<Boolean>)

Caution

Use the constructor with columnModificationParameters

Creates a new ColumnModification instance.

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)

Parameters

columnName
String

The name of the column.

originalValue
Object

The original value of the property mapped to this column.

value
Object

Gets or sets the current value of the property mapped to this column.

property
IProperty

The property that maps to the column.

columnType
String

The database type of the column.

typeMapping
RelationalTypeMapping

The relational type mapping to be used for the command parameter.

isRead
Boolean

Indicates whether a value must be read from the database for the column.

isWrite
Boolean

Indicates whether a value must be written to the database for the column.

isKey
Boolean

Indicates whether the column part of a primary or alternate key.

isCondition
Boolean

Indicates whether the column is used in the WHERE clause when updating.

sensitiveLoggingEnabled
Boolean

Indicates whether potentially sensitive data (e.g. database values) can be logged.

isNullable
Nullable<Boolean>

A value indicating whether the value could be null.

Attributes

Applies to