Table of Contents

Class TenantBranch

Namespace
KadicAuth.Domain.Entities
Assembly
KadicAuth.Domain.dll
public class TenantBranch
Inheritance
object
TenantBranch

Properties

Address

public string? Address { get; }

Property Value

string

CreatedAt

public DateTime CreatedAt { get; }

Property Value

DateTime

Id

public Guid Id { get; }

Property Value

Guid

IsActive

public bool IsActive { get; }

Property Value

bool

IsDefault

public bool IsDefault { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

Phone

public string? Phone { get; }

Property Value

string

Slug

public string Slug { get; }

Property Value

string

Tenant

public Tenant Tenant { get; set; }

Property Value

Tenant

TenantId

public Guid TenantId { get; }

Property Value

Guid

UpdatedAt

public DateTime? UpdatedAt { get; }

Property Value

DateTime?

UserTenantBranches

public ICollection<UserBranch> UserTenantBranches { get; set; }

Property Value

ICollection<UserBranch>

Methods

Activate()

public void Activate()

Create(Guid, string, string, string?, string?, bool)

public static TenantBranch Create(Guid tenantId, string name, string slug, string? address, string? phone, bool isDefault)

Parameters

tenantId Guid
name string
slug string
address string
phone string
isDefault bool

Returns

TenantBranch

Deactivate()

public void Deactivate()

RemoveDefault()

public void RemoveDefault()

SetAsDefault()

public void SetAsDefault()

Update(string, string?, string?)

public void Update(string name, string? address, string? phone)

Parameters

name string
address string
phone string

UpdateSlug(string)

public void UpdateSlug(string slug)

Parameters

slug string