Interface ICanBeDirty
Defines an entity that tracks property changes and can be dirty.
Namespace: Umbraco.Core.Models.Entities
Assembly: Umbraco.Core.dll
Syntax
public interface ICanBeDirty
Methods
View SourceGetDirtyProperties()
Gets properties that are dirty.
Declaration
IEnumerable<string> GetDirtyProperties()
Returns
Type | Description |
---|---|
System.Collections.Generic.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()