Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IDataType

    Represents a data type.

    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IDataType : IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Properties

    View Source

    Configuration

    Gets or sets the configuration object.

    Declaration
    object Configuration { get; set; }
    Property Value
    Type Description
    System.Object
    Remarks

    The configuration object is serialized to Json and stored into the database.

    The serialized Json is deserialized by the property editor, which by default should return a Dictionary{string, object} but could return a typed object e.g. MyEditor.Configuration.

    View Source

    DatabaseType

    Gets or sets the database type for the data type values.

    Declaration
    ValueStorageType DatabaseType { get; set; }
    Property Value
    Type Description
    ValueStorageType
    Remarks

    In most cases this is imposed by the property editor, but some editors may support storing different types.

    View Source

    Editor

    Gets or sets the property editor.

    Declaration
    IDataEditor Editor { get; set; }
    Property Value
    Type Description
    IDataEditor
    View Source

    EditorAlias

    Gets the property editor alias.

    Declaration
    string EditorAlias { get; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    DeepCloneWithResetIdentities()

    Creates a deep clone of the current entity with its identity/alias reset We have the default implementation here to avoid breaking changes for the user

    Declaration
    virtual IDataType DeepCloneWithResetIdentities()
    Returns
    Type Description
    IDataType
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Configuration
      • DatabaseType
      • Editor
      • EditorAlias
    • Methods
      • DeepCloneWithResetIdentities()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX