Share via


ObjectStateEntry.IsPropertyChanged(String) Method

Definition

Uses DetectChanges to determine whether or not the current value of the property with the given name is different from its original value. Note that this may be different from the property being marked as modified since a property which has not changed can still be marked as modified.

public abstract bool IsPropertyChanged (string propertyName);
abstract member IsPropertyChanged : string -> bool
Public MustOverride Function IsPropertyChanged (propertyName As String) As Boolean

Parameters

propertyName
String

The name of the property.

Returns

true if the property has changed; otherwise, false.

Remarks

Note that this property always returns the same result as the modified state of the property for change tracking proxies and entities that derive from the EntityObject base class. This is because original values are not tracked for these entity types and hence there is no way to know if the current value is really different from the original value.

Applies to