Class Group
Represents a group entity.
Inherited Members
Namespace: Innovt.Domain.Security
Assembly: Innovt.Domain.dll
Syntax
public class Group : Entity<Guid>
Constructors
| Edit this page View SourceGroup()
Initializes a new instance of the Group class.
Declaration
public Group()
Properties
| Edit this page View SourceDescription
Gets or sets the description of the group.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Gets or sets the name of the group.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Roles
Gets the list of roles associated with the group.
Declaration
public IList<Role> Roles { get; }
Property Value
Type | Description |
---|---|
IList<Role> |
Methods
| Edit this page View SourceAssignRole(Role)
Assigns a role to the group.
Declaration
public void AssignRole(Role role)
Parameters
Type | Name | Description |
---|---|---|
Role | role | The role to assign. |
UnAssignRole(Role)
Unassigns a role from the group.
Declaration
public void UnAssignRole(Role role)
Parameters
Type | Name | Description |
---|---|---|
Role | role | The role to unassign. |