Class TenantRole
- Namespace
- KadicAuth.Domain.Entities
- Assembly
- KadicAuth.Domain.dll
- Inheritance
-
object
TenantRole
Constructors
TenantRole(Guid, Guid, string, string, string?, bool)
public TenantRole(Guid id, Guid tenantId, string code, string name, string? description = null, bool isActive = true)
Parameters
id Guid
tenantId Guid
code string
name string
description string
isActive bool
Properties
Code
public string Code { get; }
Property Value
- string
CreatedAt
public DateTime CreatedAt { get; }
Property Value
- DateTime
Description
public string? Description { get; }
Property Value
- string
Id
Property Value
- Guid
IsActive
public bool IsActive { get; }
Property Value
- bool
Name
public string Name { get; }
Property Value
- string
Tenant
public Tenant? Tenant { get; set; }
Property Value
- Tenant
TenantId
public Guid TenantId { get; }
Property Value
- Guid
TenantRolePermissions
public ICollection<TenantRolePermission> TenantRolePermissions { get; set; }
Property Value
- ICollection<TenantRolePermission>
UpdatedAt
public DateTime? UpdatedAt { get; }
Property Value
- DateTime?
UserRoleAssignments
public ICollection<UserRoleAssignment> UserRoleAssignments { get; set; }
Property Value
- ICollection<UserRoleAssignment>
Methods
Activate()
AddPermission(TenantRolePermission)
public void AddPermission(TenantRolePermission permission)
Parameters
permission TenantRolePermission
Deactivate()
Update(string, string?)
public void Update(string name, string? description)
Parameters
name string
description string