ProfileClassificationService Class
Namespace: PTS.Modules.ProfileClassificationAggregate
Assembly: PTS.Modules.ProfileClassificationAggregate.dll
Syntax
public class ProfileClassificationService : UnitOfWorkService, IServiceProviderAccessor, IProfileClassificationAggregateService, ISeedWork<IProfileClassificationAggregateService>, ISeedWork
Implements
Constructors
ProfileClassificationService(IUnitOfWork)
Declaration
public ProfileClassificationService(IUnitOfWork unitOfWork)
Parameters
Type | Name | Description |
---|---|---|
IUnitOfWork | unitOfWork |
Properties
Classifications
Declaration
protected IRepository<Classification> Classifications { get; }
Property Value
Type | Description |
---|---|
IRepository<Classification> |
Links
Declaration
protected IRepository<ProfileClassification> Links { get; }
Property Value
Type | Description |
---|---|
IRepository<ProfileClassification> |
Methods
GetLink(Profile, Classification)
Gets the ProfileClassification link between Profile and Classification.
Declaration
public virtual ProfileClassification GetLink(Profile profile, Classification classification)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
Returns
Type | Description |
---|---|
ProfileClassification |
GetLinkAsync(Profile, Classification)
Gets the ProfileClassification link between Profile and Classification.
Declaration
public virtual Task<ProfileClassification> GetLinkAsync(Profile profile, Classification classification)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileClassification> | A System.Threading.Tasks.Task with result of ProfileClassification. |
GetProfileClassificationAggregate(Profile)
Gets the ProfileClassification links for profile
.
Declaration
public virtual List<ProfileClassification> GetProfileClassificationAggregate(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<ProfileClassification> | The System.Collections.Generic.List<T>. |
GetProfileClassificationAggregateAsync(Profile)
Gets the ProfileClassification links for profile
.
Declaration
public virtual Task<List<ProfileClassification>> GetProfileClassificationAggregateAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<ProfileClassification>> | A System.Threading.Tasks.Task with result of System.Collections.Generic.List<T>. |
ReplaceLinks(Profile, Int64[])
Replaces the ProfileClassification for profile
.
Declaration
public List<ProfileClassification> ReplaceLinks(Profile profile, long[] classificationIds)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
System.Int64[] | classificationIds | The classification ids. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<ProfileClassification> |
ReplaceLinksAsync(Profile, Int64[])
Replaces the ProfileClassification for profile
.
Declaration
public Task<List<ProfileClassification>> ReplaceLinksAsync(Profile profile, long[] classificationIds)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
System.Int64[] | classificationIds | The classification ids. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<ProfileClassification>> |
SetLink(Profile, Classification, ValueType, Object, Int32)
Sets the ProfileClassification link between Profile and Classification.
Declaration
public virtual ProfileClassification SetLink(Profile profile, Classification classification, ValueType type = ValueType.None, object value = null, int sort = 0)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
ValueType | type | The type. |
System.Object | value | The value. |
System.Int32 | sort | The sort. |
Returns
Type | Description |
---|---|
ProfileClassification |
SetLinkAsync(Profile, Classification, ValueType, Object, Int32)
Sets the ProfileClassification link between Profile and Classification.
Declaration
public virtual Task<ProfileClassification> SetLinkAsync(Profile profile, Classification classification, ValueType type = ValueType.None, object value = null, int sort = 0)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
ValueType | type | The type. |
System.Object | value | The value. |
System.Int32 | sort | The sort. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileClassification> | A System.Threading.Tasks.Task with result of ProfileClassification. |
UnsetLink(Profile, Classification)
Unsets the ProfileClassification link between Profile and Classification.
Declaration
public virtual void UnsetLink(Profile profile, Classification classification)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
UnsetLinkAsync(Profile, Classification)
Unsets the ProfileClassification link between Profile and Classification.
Declaration
public virtual Task UnsetLinkAsync(Profile profile, Classification classification)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The System.Threading.Tasks.Task of completed operation. |