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 SourceContentNuDto()
Declaration
public ContentNuDto()
Fields
View SourceNodeIdColumnName
Declaration
public const string NodeIdColumnName = "nodeId"
Field Value
| Type | Description |
|---|---|
| string |
PrimaryKeyColumnName
Declaration
[Obsolete("Use NodeIdColumnName instead. Scheduled for removal in Umbraco 18.")]
public const string PrimaryKeyColumnName = "nodeId"
Field Value
| Type | Description |
|---|---|
| string |
TableName
Declaration
public const string TableName = "cmsContentNu"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceData
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
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 |
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 |
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[] |
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 |