Class ElementVersionDto
Data transfer object representing a specific version of an element in Umbraco CMS, typically used for persistence operations.
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Persistence.Dtos
Assembly: Umbraco.Infrastructure.dll
Syntax
public sealed class ElementVersionDto
Constructors
View SourceElementVersionDto()
Declaration
public ElementVersionDto()
Fields
View SourceTableName
The database table name for element versions.
Declaration
public const string TableName = "umbracoElementVersion"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceContentVersionDto
Gets or sets the ContentVersionDto associated with this element version.
Declaration
public ContentVersionDto ContentVersionDto { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentVersionDto |
Id
Gets or sets the unique identifier for the element version.
Declaration
[PrimaryKeyColumn(AutoIncrement = false)]
[ForeignKey(typeof(ContentVersionDto))]
[Index(IndexTypes.NonClustered, Name = "IX_umbracoElementVersion_id_published", ForColumns = "id,published")]
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Published
Gets or sets a value indicating whether this element version is published.
Declaration
[Index(IndexTypes.NonClustered, Name = "IX_umbracoElementVersion_published", ForColumns = "published", IncludeColumns = "id")]
public bool Published { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |