Class UserGroup2PermissionDto
Represents a mapping between a user group and a permission in the database. This DTO is used to associate user groups with their assigned permissions.
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Persistence.Dtos
Assembly: Umbraco.Infrastructure.dll
Syntax
public class UserGroup2PermissionDto
Constructors
View SourceUserGroup2PermissionDto()
Declaration
public UserGroup2PermissionDto()
Fields
View SourcePrimaryKeyColumnName
Declaration
public const string PrimaryKeyColumnName = "id"
Field Value
| Type | Description |
|---|---|
| string |
TableName
Declaration
public const string TableName = "umbracoUserGroup2Permission"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceId
Gets or sets the unique primary key identifier for this user group to permission mapping.
Declaration
[PrimaryKeyColumn(Name = "PK_userGroup2Permission", AutoIncrement = true)]
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Permission
Gets or sets the permission code assigned to the user group. This typically represents a specific action or access right.
Declaration
[Length(255)]
public required string Permission { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserGroupKey
Gets or sets the key of the user group associated with this permission.
Declaration
[Index(IndexTypes.NonClustered, IncludeColumns = "permission")]
[ForeignKey(typeof(UserGroupDto), Column = "key")]
public Guid UserGroupKey { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |