Class DictionaryDto
Data transfer object representing a dictionary item in the Umbraco CMS database. Used for persisting and retrieving dictionary entries, typically for localization or multilingual support.
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Persistence.Dtos
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DictionaryDto
Remarks
public as required to be accessible from Deploy for the RepairDictionaryIdsWorkItem.
Constructors
View SourceDictionaryDto()
Declaration
public DictionaryDto()
Fields
View SourcePrimaryKeyColumnName
Declaration
public const string PrimaryKeyColumnName = "pk"
Field Value
| Type | Description |
|---|---|
| string |
TableName
Declaration
public const string TableName = "cmsDictionary"
Field Value
| Type | Description |
|---|---|
| string |
UniqueIdColumnName
Declaration
public const string UniqueIdColumnName = "id"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceKey
Gets or sets the unique key for the dictionary item.
Declaration
[Length(450)]
[Index(IndexTypes.UniqueNonClustered, Name = "IX_cmsDictionary_key")]
public string Key { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LanguageTextDtos
Gets or sets the collection of language-specific text DTOs associated with this dictionary entry.
Declaration
public List<LanguageTextDto> LanguageTextDtos { get; set; }
Property Value
| Type | Description |
|---|---|
| List<LanguageTextDto> |
Parent
Gets or sets the unique identifier of the parent dictionary item, or null if this item has no parent.
Declaration
[NullSetting(NullSetting = NullSettings.Null)]
[ForeignKey(typeof(DictionaryDto), Column = "id")]
[Index(IndexTypes.NonClustered, Name = "IX_cmsDictionary_Parent")]
public Guid? Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
PrimaryKey
Gets or sets the primary key of the dictionary entry.
Declaration
[PrimaryKeyColumn]
public int PrimaryKey { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
UniqueId
Gets or sets the unique identifier for the dictionary item.
Declaration
[Index(IndexTypes.UniqueNonClustered)]
public Guid UniqueId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |