Class DocumentVersionDto
Data transfer object representing a specific version of a document in Umbraco CMS, typically used for persistence operations.
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Persistence.Dtos
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DocumentVersionDto
Constructors
View SourceDocumentVersionDto()
Declaration
public DocumentVersionDto()
Fields
View SourceTableName
Declaration
public const string TableName = "umbracoDocumentVersion"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceContentVersionDto
Gets or sets the ContentVersionDto associated with this document version.
Declaration
public ContentVersionDto ContentVersionDto { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentVersionDto |
Id
Gets or sets the unique identifier for the document version.
Declaration
[PrimaryKeyColumn(AutoIncrement = false)]
[ForeignKey(typeof(ContentVersionDto))]
[Index(IndexTypes.NonClustered, Name = "IX_umbracoDocumentVersion_id_published", ForColumns = "id,published", IncludeColumns = "templateId")]
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Published
Gets or sets a value indicating whether this document version is published.
Declaration
[Index(IndexTypes.NonClustered, Name = "IX_umbracoDocumentVersion_published", ForColumns = "published", IncludeColumns = "id,templateId")]
public bool Published { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TemplateId
Gets or sets the template identifier associated with the document version.
Declaration
[NullSetting(NullSetting = NullSettings.Null)]
[ForeignKey(typeof(TemplateDto), Column = "nodeId")]
public int? TemplateId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |