Show / Hide Table of Contents

Class OrganizationUnit

Inheritance
object
Entity
Entity<Guid>
BasicAggregateRoot<Guid>
AggregateRoot<Guid>
CreationAuditedAggregateRoot<Guid>
AuditedAggregateRoot<Guid>
FullAuditedAggregateRoot<Guid>
OrganizationUnit
Implements
IAggregateRoot<Guid>
IEntity<Guid>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
IMultiTenant
IHasEntityVersion
Inherited Members
FullAuditedAggregateRoot<Guid>.IsDeleted
FullAuditedAggregateRoot<Guid>.DeleterId
FullAuditedAggregateRoot<Guid>.DeletionTime
AuditedAggregateRoot<Guid>.LastModificationTime
AuditedAggregateRoot<Guid>.LastModifierId
CreationAuditedAggregateRoot<Guid>.CreationTime
CreationAuditedAggregateRoot<Guid>.CreatorId
AggregateRoot<Guid>.Validate(ValidationContext)
AggregateRoot<Guid>.ExtraProperties
AggregateRoot<Guid>.ConcurrencyStamp
BasicAggregateRoot<Guid>.GetLocalEvents()
BasicAggregateRoot<Guid>.GetDistributedEvents()
BasicAggregateRoot<Guid>.ClearLocalEvents()
BasicAggregateRoot<Guid>.ClearDistributedEvents()
BasicAggregateRoot<Guid>.AddLocalEvent(object)
BasicAggregateRoot<Guid>.AddDistributedEvent(object)
Entity<Guid>.GetKeys()
Entity<Guid>.ToString()
Entity<Guid>.Id
Entity.EntityEquals(IEntity)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Identity
Assembly: Volo.Abp.Identity.Domain.dll
Syntax
public class OrganizationUnit : FullAuditedAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, IFullAuditedObject, IAuditedObject, ICreationAuditedObject, IHasCreationTime, IMayHaveCreator, IModificationAuditedObject, IHasModificationTime, IDeletionAuditedObject, IHasDeletionTime, ISoftDelete, IMultiTenant, IHasEntityVersion

Constructors

OrganizationUnit()

Declaration
public OrganizationUnit()

OrganizationUnit(Guid, string, Guid?, Guid?)

Declaration
public OrganizationUnit(Guid id, string displayName, Guid? parentId = null, Guid? tenantId = null)
Parameters
Type Name Description
Guid id
string displayName
Guid? parentId
Guid? tenantId

Properties

Code

Declaration
public virtual string Code { get; }
Property Value
Type Description
string

DisplayName

Declaration
public virtual string DisplayName { get; set; }
Property Value
Type Description
string

EntityVersion

Declaration
public virtual int EntityVersion { get; set; }
Property Value
Type Description
int

ParentId

Declaration
public virtual Guid? ParentId { get; }
Property Value
Type Description
Guid?

Roles

Declaration
public virtual ICollection<OrganizationUnitRole> Roles { get; protected set; }
Property Value
Type Description
ICollection<OrganizationUnitRole>

TenantId

Declaration
public virtual Guid? TenantId { get; protected set; }
Property Value
Type Description
Guid?

Methods

AddRole(Guid)

Declaration
public virtual void AddRole(Guid roleId)
Parameters
Type Name Description
Guid roleId

AppendCode(string, string)

Declaration
public static string AppendCode(string parentCode, string childCode)
Parameters
Type Name Description
string parentCode
string childCode
Returns
Type Description
string

CalculateNextCode(string)

Declaration
public static string CalculateNextCode(string code)
Parameters
Type Name Description
string code
Returns
Type Description
string

CreateCode(params int[])

Declaration
public static string CreateCode(params int[] numbers)
Parameters
Type Name Description
int[] numbers
Returns
Type Description
string

GetLastUnitCode(string)

Declaration
public static string GetLastUnitCode(string code)
Parameters
Type Name Description
string code
Returns
Type Description
string

GetParentCode(string)

Declaration
public static string GetParentCode(string code)
Parameters
Type Name Description
string code
Returns
Type Description
string

GetRelativeCode(string, string)

Declaration
public static string GetRelativeCode(string code, string parentCode)
Parameters
Type Name Description
string code
string parentCode
Returns
Type Description
string

IsInRole(Guid)

Declaration
public virtual bool IsInRole(Guid roleId)
Parameters
Type Name Description
Guid roleId
Returns
Type Description
bool

RemoveRole(Guid)

Declaration
public virtual void RemoveRole(Guid roleId)
Parameters
Type Name Description
Guid roleId

Implements

IAggregateRoot<TKey>
IEntity<TKey>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
IMultiTenant
IHasEntityVersion

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform