ProfileAliasService Class
Namespace: PTS.Modules.ProfileAliasExtension.Common
Assembly: PTS.Modules.ProfileAliasExtension.dll
Syntax
public class ProfileAliasService : UnitOfWorkService, IServiceProviderAccessor, IProfileAliasService, ISeedWork<IProfileAliasService>, ISeedWork
Constructors
ProfileAliasService(IUnitOfWork)
Declaration
public ProfileAliasService(IUnitOfWork unitOfWork)
Parameters
Type | Name | Description |
---|---|---|
IUnitOfWork | unitOfWork |
Properties
Aliases
Declaration
protected IRepository<ProfileAlias> Aliases { get; }
Property Value
Type | Description |
---|---|
IRepository<ProfileAlias> |
Methods
GetAlias(Profile)
Gets the ProfileAlias for Profile.
Declaration
public virtual ProfileAlias GetAlias(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
ProfileAlias | The ProfileAlias entity. |
GetAliasAsync(Profile)
Gets the ProfileAlias for Profile.
Declaration
public virtual Task<ProfileAlias> GetAliasAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileAlias> | A System.Threading.Tasks.Task with a result of ProfileAlias entity. |
SetAlias(Profile, String)
Declaration
public virtual ProfileAlias SetAlias(Profile profile, string alias)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | |
System.String | alias |
Returns
Type | Description |
---|---|
ProfileAlias |
SetAliasAsync(Profile, String)
Sets the ProfileAlias for Profile.
Declaration
public virtual Task<ProfileAlias> SetAliasAsync(Profile profile, string alias)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
System.String | alias | The alias string. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileAlias> | A System.Threading.Tasks.Task with a result of ProfileAlias entity. |
SetDefaultAlias(Profile)
Sets the default ProfileAlias for Profile based on the Name.
Declaration
public virtual ProfileAlias SetDefaultAlias(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The Profile entity. |
Returns
Type | Description |
---|---|
ProfileAlias | The ProfileAlias entity. |
SetDefaultAliasAsync(Profile)
Sets the default ProfileAlias for Profile based on the Name.
Declaration
public virtual Task<ProfileAlias> SetDefaultAliasAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileAlias> | A System.Threading.Tasks.Task with a result of ProfileAlias entity. |
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()