Class Tenant
- Namespace
- KadicAuth.Domain.Entities
- Assembly
- KadicAuth.Domain.dll
- Inheritance
-
object
Tenant
Constructors
Tenant(Guid, string, Guid, string?, bool, string?)
public Tenant(Guid id, string name, Guid planId, string? description, bool isActive, string? imageUrl)
Parameters
id Guid
name string
planId Guid
description string
isActive bool
imageUrl string
Tenant(Guid, string, string, string, string, Guid, bool, string?, string?)
public Tenant(Guid id, string name, string slug, string domain, string region, Guid planId, bool isActive, string? description, string? imageUrl)
Parameters
id Guid
name string
slug string
domain string
region string
planId Guid
isActive bool
description string
imageUrl string
Properties
Branches
public ICollection<TenantBranch> Branches { get; set; }
Property Value
- ICollection<TenantBranch>
CreatedAt
public DateTime CreatedAt { get; }
Property Value
- DateTime
Description
public string? Description { get; }
Property Value
- string
Domain
public string Domain { get; }
Property Value
- string
Id
Property Value
- Guid
ImageUrl
public string? ImageUrl { get; }
Property Value
- string
IsActive
public bool IsActive { get; }
Property Value
- bool
Name
public string Name { get; }
Property Value
- string
Plan
public Plan? Plan { get; set; }
Property Value
- Plan
PlanId
public Guid PlanId { get; }
Property Value
- Guid
Region
public string Region { get; }
Property Value
- string
Roles
public ICollection<Role> Roles { get; set; }
Property Value
- ICollection<Role>
Slug
public string Slug { get; }
Property Value
- string
TenantRoles
public ICollection<TenantRole> TenantRoles { get; set; }
Property Value
- ICollection<TenantRole>
TenantSubModules
public ICollection<TenantSubModule> TenantSubModules { get; set; }
Property Value
- ICollection<TenantSubModule>
UpdatedAt
public DateTime? UpdatedAt { get; }
Property Value
- DateTime?
Methods
Activate()
Deactivate()
Update(string, string, string, string, string, Guid, string?, string?)
public void Update(string codeOrSlug, string name, string generatedSlug, string domain, string region, Guid planId, string? description, string? imageUrl)
Parameters
codeOrSlug string
name string
generatedSlug string
domain string
region string
planId Guid
description string
imageUrl string