Class UserBranch
- Namespace
- KadicAuth.Domain.Entities
- Assembly
- KadicAuth.Domain.dll
- Inheritance
-
object
UserBranch
Properties
CreatedAt
public DateTime CreatedAt { get; }
Property Value
- DateTime
Id
Property Value
- Guid
IsActive
public bool IsActive { get; }
Property Value
- bool
IsMain
public bool IsMain { get; }
Property Value
- bool
TenantBranch
public TenantBranch TenantBranch { get; set; }
Property Value
- TenantBranch
TenantBranchId
public Guid TenantBranchId { get; }
Property Value
- Guid
TenantId
public Guid TenantId { get; }
Property Value
- Guid
UpdatedAt
public DateTime? UpdatedAt { get; }
Property Value
- DateTime?
User
public User? User { get; set; }
Property Value
- User
UserId
public Guid UserId { get; }
Property Value
- Guid
Methods
Create(Guid, Guid, Guid, bool)
public static UserBranch Create(Guid tenantId, Guid userId, Guid tenantBranchId, bool isMainBranch = false)
Parameters
tenantId Guid
userId Guid
tenantBranchId Guid
isMainBranch bool
Returns
- UserBranch
MarkInactive()
public void MarkInactive()
SetAsMainBranch()
public void SetAsMainBranch()
UnsetMainBranch()
public void UnsetMainBranch()