Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentNuDto

    Represents a data transfer object (DTO) for content entities used in the Umbraco CMS persistence layer. This class is typically used for database operations involving content data.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Persistence.Dtos
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class ContentNuDto

    Constructors

    View Source

    ContentNuDto()

    Declaration
    public ContentNuDto()

    Fields

    View Source

    NodeIdColumnName

    Declaration
    public const string NodeIdColumnName = "nodeId"
    Field Value
    Type Description
    string
    View Source

    PrimaryKeyColumnName

    Declaration
    [Obsolete("Use NodeIdColumnName instead. Scheduled for removal in Umbraco 18.")]
    public const string PrimaryKeyColumnName = "nodeId"
    Field Value
    Type Description
    string
    View Source

    TableName

    Declaration
    public const string TableName = "cmsContentNu"
    Field Value
    Type Description
    string

    Properties

    View Source

    Data

    Stores serialized JSON representing the content item's property and culture name values

    Declaration
    [SpecialDbType(SpecialDbTypes.NVARCHARMAX)]
    [NullSetting(NullSetting = NullSettings.Null)]
    public string? Data { get; set; }
    Property Value
    Type Description
    string
    Remarks

    Pretty much anything that would require a 1:M lookup is serialized here

    View Source

    NodeId

    Gets or sets the unique identifier of the content node.

    Declaration
    [PrimaryKeyColumn(AutoIncrement = false, Name = "PK_cmsContentNu", OnColumns = "nodeId, published")]
    [ForeignKey(typeof(ContentDto), Column = "nodeId", OnDelete = Rule.Cascade)]
    public int NodeId { get; set; }
    Property Value
    Type Description
    int
    View Source

    Published

    Gets or sets a value indicating whether the content is published.

    Declaration
    [Index(IndexTypes.NonClustered, Name = "IX_cmsContentNu_published", ForColumns = "published,nodeId,rv", IncludeColumns = "dataRaw")]
    public bool Published { get; set; }
    Property Value
    Type Description
    bool
    View Source

    RawData

    Gets or sets the raw binary data representing the serialized state of the content item. This data is typically used for caching or persistence purposes within the Umbraco CMS.

    Declaration
    [NullSetting(NullSetting = NullSettings.Null)]
    public byte[]? RawData { get; set; }
    Property Value
    Type Description
    byte[]
    View Source

    Rv

    Gets or sets the revision number (Rv), which represents the version of the content in the database.

    Declaration
    public long Rv { get; set; }
    Property Value
    Type Description
    long
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX