Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    GetWereDirtyProperties()

    Gets properties that were dirty.

    Declaration
    IEnumerable<string> GetWereDirtyProperties()
    Returns
    Type Description
    IEnumerable<System.String>
    View Source

    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.

    View Source

    ResetWereDirtyProperties()

    Resets properties that were dirty.

    Declaration
    void ResetWereDirtyProperties()
    View Source

    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.

    View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetWereDirtyProperties()
      • ResetDirtyProperties(Boolean)
      • ResetWereDirtyProperties()
      • WasDirty()
      • WasPropertyDirty(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX