Interface ICanBeDirty
Defines an entity that tracks property changes and can be dirty.
Namespace: Umbraco.Cms.Core.Models.Entities
Assembly: Umbraco.Core.dll
Syntax
public interface ICanBeDirty
Methods
View SourceDisableChangeTracking()
Disables change tracking.
Declaration
void DisableChangeTracking()
EnableChangeTracking()
Enables change tracking.
Declaration
void EnableChangeTracking()
GetDirtyProperties()
Gets properties that are dirty.
Declaration
IEnumerable<string> GetDirtyProperties()
Returns
Type | Description |
---|---|
IEnumerable<System.String> |
IsDirty()
Determines whether the current entity is dirty.
Declaration
bool IsDirty()
Returns
Type | Description |
---|---|
System.Boolean |
IsPropertyDirty(String)
Determines whether a specific property is dirty.
Declaration
bool IsPropertyDirty(string propName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propName |
Returns
Type | Description |
---|---|
System.Boolean |
ResetDirtyProperties()
Resets dirty properties.
Declaration
void ResetDirtyProperties()
Events
View SourcePropertyChanged
Declaration
event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |