Show / Hide Table of Contents

Class TenantService

Inheritance
object
ServiceBase
TenantService
Implements
ITenantService
ICrudService<ITenant, RootServiceContext, Query>
ICreateService<ITenant, RootServiceContext, Query>
IReadService<ITenant, RootServiceContext, Query>
IAttributeService<RootServiceContext>
Inherited Members
ServiceBase.AddQueryValue(string, string, object)
ServiceBase.AddQueryValue(string, string, DateTime)
ServiceBase.HttpClient
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Service.Api
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class TenantService : ServiceBase, ITenantService, ICrudService<ITenant, RootServiceContext, Query>, ICreateService<ITenant, RootServiceContext, Query>, IReadService<ITenant, RootServiceContext, Query>, IAttributeService<RootServiceContext>

Constructors

TenantService(PayrollHttpClient)

Declaration
public TenantService(PayrollHttpClient httpClient)
Parameters
Type Name Description
PayrollHttpClient httpClient

Methods

CreateAsync<T>(RootServiceContext, T)

Declaration
public virtual Task<T> CreateAsync<T>(RootServiceContext context, T tenant) where T : class, ITenant
Parameters
Type Name Description
RootServiceContext context
T tenant
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

DeleteAsync(RootServiceContext, int)

Declaration
public virtual Task DeleteAsync(RootServiceContext context, int tenantId)
Parameters
Type Name Description
RootServiceContext context
int tenantId
Returns
Type Description
Task

DeleteAttributeAsync(RootServiceContext, int, string)

Declaration
public virtual Task DeleteAttributeAsync(RootServiceContext context, int tenantId, string attributeName)
Parameters
Type Name Description
RootServiceContext context
int tenantId
string attributeName
Returns
Type Description
Task

ExecuteReportQueryAsync(int, string, string, Dictionary<string, string>)

Declaration
public virtual Task<DataTable> ExecuteReportQueryAsync(int tenantId, string methodName, string culture, Dictionary<string, string> parameters = null)
Parameters
Type Name Description
int tenantId
string methodName
string culture
Dictionary<string, string> parameters
Returns
Type Description
Task<DataTable>

GetAsync<T>(RootServiceContext, int)

Declaration
public virtual Task<T> GetAsync<T>(RootServiceContext context, int tenantId) where T : class, ITenant
Parameters
Type Name Description
RootServiceContext context
int tenantId
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

GetAsync<T>(RootServiceContext, string)

Declaration
public virtual Task<T> GetAsync<T>(RootServiceContext context, string identifier) where T : class, ITenant
Parameters
Type Name Description
RootServiceContext context
string identifier
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

GetAttributeAsync(RootServiceContext, int, string)

Declaration
public virtual Task<string> GetAttributeAsync(RootServiceContext context, int tenantId, string attributeName)
Parameters
Type Name Description
RootServiceContext context
int tenantId
string attributeName
Returns
Type Description
Task<string>

GetSharedRegulationsAsync<T>(int, int?)

Declaration
public virtual Task<List<T>> GetSharedRegulationsAsync<T>(int tenantId, int? divisionId) where T : class, IRegulation
Parameters
Type Name Description
int tenantId
int? divisionId
Returns
Type Description
Task<List<T>>
Type Parameters
Name Description
T

GetSystemScriptActionPropertiesAsync<TAction>(int, FunctionType, bool)

Declaration
public virtual Task<List<TAction>> GetSystemScriptActionPropertiesAsync<TAction>(int tenantId, FunctionType functionType, bool readOnly = true) where TAction : ActionInfo
Parameters
Type Name Description
int tenantId
FunctionType functionType
bool readOnly
Returns
Type Description
Task<List<TAction>>
Type Parameters
Name Description
TAction

GetSystemScriptActionsAsync<TAction>(int, FunctionType)

Declaration
public virtual Task<List<TAction>> GetSystemScriptActionsAsync<TAction>(int tenantId, FunctionType functionType) where TAction : ActionInfo
Parameters
Type Name Description
int tenantId
FunctionType functionType
Returns
Type Description
Task<List<TAction>>
Type Parameters
Name Description
TAction

QueryAsync<T>(RootServiceContext, Query)

Declaration
public virtual Task<List<T>> QueryAsync<T>(RootServiceContext context, Query query = null) where T : class, ITenant
Parameters
Type Name Description
RootServiceContext context
Query query
Returns
Type Description
Task<List<T>>
Type Parameters
Name Description
T

QueryCountAsync(RootServiceContext, Query)

Declaration
public virtual Task<long> QueryCountAsync(RootServiceContext context, Query query = null)
Parameters
Type Name Description
RootServiceContext context
Query query
Returns
Type Description
Task<long>

QueryResultAsync<T>(RootServiceContext, Query)

Declaration
public virtual Task<QueryResult<T>> QueryResultAsync<T>(RootServiceContext context, Query query = null) where T : class, ITenant
Parameters
Type Name Description
RootServiceContext context
Query query
Returns
Type Description
Task<QueryResult<T>>
Type Parameters
Name Description
T

SetAttributeAsync(RootServiceContext, int, string, string)

Declaration
public virtual Task SetAttributeAsync(RootServiceContext context, int tenantId, string attributeName, string attributeValue)
Parameters
Type Name Description
RootServiceContext context
int tenantId
string attributeName
string attributeValue
Returns
Type Description
Task

UpdateAsync<T>(RootServiceContext, T)

Declaration
public virtual Task UpdateAsync<T>(RootServiceContext context, T tenant) where T : class, ITenant
Parameters
Type Name Description
RootServiceContext context
T tenant
Returns
Type Description
Task
Type Parameters
Name Description
T

Implements

ITenantService
ICrudService<TModel, TContext, TQuery>
ICreateService<TModel, TContext, TQuery>
IReadService<TModel, TContext, TQuery>
IAttributeService<TContext>

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX