Interface IRememberBeingDirty
Defines an entity that tracks property changes and can be dirty, and remembers which properties were dirty when the changes were committed.
Namespace: Umbraco.Cms.Core.Models.Entities
Assembly: Umbraco.Core.dll
Syntax
public interface IRememberBeingDirty : ICanBeDirty
Methods
View SourceGetWereDirtyProperties()
Gets properties that were dirty.
Declaration
IEnumerable<string> GetWereDirtyProperties()
Returns
Type | Description |
---|---|
IEnumerable<System.String> |
ResetDirtyProperties(Boolean)
Resets dirty properties.
Declaration
void ResetDirtyProperties(bool rememberDirty)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | rememberDirty | A value indicating whether to remember dirty properties. |
Remarks
When rememberDirty
is true, dirty properties are saved so they can be checked with
WasDirty.
ResetWereDirtyProperties()
Resets properties that were dirty.
Declaration
void ResetWereDirtyProperties()
WasDirty()
Determines whether the current entity is dirty.
Declaration
bool WasDirty()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
A property was dirty if it had been changed and the changes were committed.
WasPropertyDirty(String)
Determines whether a specific property was dirty.
Declaration
bool WasPropertyDirty(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
A property was dirty if it had been changed and the changes were committed.