Search Results for

    Show / Hide Table of Contents
    View Source

    Class EntityBasic

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "entity", Namespace = "")]
    public class EntityBasic

    Constructors

    View Source

    EntityBasic()

    Declaration
    public EntityBasic()

    Properties

    View Source

    AdditionalData

    A collection of extra data that is available for this specific entity/entity type

    Declaration
    [DataMember(Name = "metaData")]
    public IDictionary<string, object> AdditionalData { get; }
    Property Value
    Type Description
    IDictionary<System.String, System.Object>
    View Source

    Alias

    This will only be populated for some entities like macros

    Declaration
    [DataMember(Name = "alias")]
    public virtual string Alias { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    It is possible to override this to specify different validation attributes if required

    View Source

    Icon

    Declaration
    [DataMember(Name = "icon")]
    public string Icon { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Id

    Declaration
    [DataMember(Name = "id", IsRequired = true)]
    [Required]
    public object Id { get; set; }
    Property Value
    Type Description
    System.Object
    View Source

    Key

    This is the unique Id stored in the database - but could also be the unique id for a custom membership provider

    Declaration
    [DataMember(Name = "key")]
    public Guid Key { get; set; }
    Property Value
    Type Description
    Guid
    View Source

    Name

    Declaration
    [DataMember(Name = "name", IsRequired = true)]
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    ParentId

    Declaration
    [DataMember(Name = "parentId", IsRequired = true)]
    [Required]
    public int ParentId { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    Path

    The path of the entity

    Declaration
    [DataMember(Name = "path")]
    public string Path { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Trashed

    Declaration
    [DataMember(Name = "trashed")]
    public bool Trashed { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    Udi

    Declaration
    [DataMember(Name = "udi")]
    public Udi Udi { get; set; }
    Property Value
    Type Description
    Udi
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • EntityBasic()
    • Properties
      • AdditionalData
      • Alias
      • Icon
      • Id
      • Key
      • Name
      • ParentId
      • Path
      • Trashed
      • Udi
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX