Class UserDataDto
Represents a data transfer object (DTO) containing user-related data for persistence operations in Umbraco CMS.
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Persistence.Dtos
Assembly: Umbraco.Infrastructure.dll
Syntax
public class UserDataDto
Constructors
View SourceUserDataDto()
Declaration
public UserDataDto()
Fields
View SourcePrimaryKeyColumnName
Declaration
public const string PrimaryKeyColumnName = "key"
Field Value
| Type | Description |
|---|---|
| string |
TableName
Declaration
public const string TableName = "umbracoUserData"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceGroup
Gets or sets the name of the group to which the user belongs.
Declaration
[NullSetting(NullSetting = NullSettings.NotNull)]
public required string Group { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Identifier
Gets or sets the unique identifier associated with the user data record.
Declaration
[NullSetting(NullSetting = NullSettings.NotNull)]
public required string Identifier { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Key
Gets or sets the unique identifier for this user data record.
Declaration
[PrimaryKeyColumn(Name = "PK_umbracoUserDataDto", AutoIncrement = false)]
public Guid Key { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
UserKey
Gets or sets the unique key that identifies the user.
Declaration
[NullSetting(NullSetting = NullSettings.NotNull)]
[Index(IndexTypes.NonClustered, Name = "IX_umbracoUserDataDto_UserKey_Group_Identifier", IncludeColumns = "group,identifier")]
[ForeignKey(typeof(UserDto), Column = "key")]
public Guid UserKey { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
Value
Gets or sets the string value stored for the user data entry.
Declaration
[NullSetting(NullSetting = NullSettings.NotNull)]
[SpecialDbType(SpecialDbTypes.NVARCHARMAX)]
public required string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |