ClassificationService Class
Namespace: PTS.Modules.Classifications.Common
Assembly: PTS.Modules.Classifications.dll
Syntax
public class ClassificationService : SingleRepositoryService<Classification>, IServiceProviderAccessor, IClassificationsService, ISeedWork<IClassificationsService>, ISeedWork
Inheritance
System.Object
ClassificationService
Implements
Constructors
ClassificationService(IUnitOfWork)
Declaration
public ClassificationService(IUnitOfWork unitOfWork)
Parameters
Type | Name | Description |
---|---|---|
IUnitOfWork | unitOfWork |
Methods
GetClassificationsTree(Int32, Nullable<Int64>)
Gets the classifications in tree structure.
Declaration
public virtual List<Classification> GetClassificationsTree(int maxDepth = 0, long? parent = default(long? ))
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxDepth | The maximum depth for children loading. |
System.Nullable<System.Int64> | parent | The parent for which the tree should be built. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Classification> |
GetClassificationsTreeAsync(Int32, Nullable<Int64>)
Gets the classifications in tree structure asynchronously.
Declaration
public virtual Task<List<Classification>> GetClassificationsTreeAsync(int maxDepth = 0, long? parent = default(long? ))
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxDepth | The maximum depth for children loading. |
System.Nullable<System.Int64> | parent | The parent for which the tree should be built. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<Classification>> |
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()