Class Role
Namespace: Identity.Domain.Aggregates.UserAggregate
Assembly: Identity.Domain.dll
Represents a role in the system.
[Table("Roles")]
public sealed class Role : Entity, IAggregateRoot, IAuditable
Inheritance
object ← Entity ← Role
Implements
Inherited Members
Entity.Id, Entity.CreatedAt, Entity.UpdatedAt, Entity.DomainEvents, object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Fields
Users
The users that belong to this role.
public List<User> Users
Field Value
Properties
Name
The name of the role.
[Required]
[StringLength(50)]
public string Name { get; set; }
Property Value
Last modified: 21 May 2024