Show / Hide Table of Contents

Class RegulationService

Inheritance
object
ServiceBase
RegulationService
Implements
IRegulationService
ICrudService<IRegulation, TenantServiceContext, Query>
ICreateService<IRegulation, TenantServiceContext, Query>
IReadService<IRegulation, TenantServiceContext, Query>
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 RegulationService : ServiceBase, IRegulationService, ICrudService<IRegulation, TenantServiceContext, Query>, ICreateService<IRegulation, TenantServiceContext, Query>, IReadService<IRegulation, TenantServiceContext, Query>

Constructors

RegulationService(PayrollHttpClient)

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

Methods

CreateAsync<T>(TenantServiceContext, T)

Declaration
public virtual Task<T> CreateAsync<T>(TenantServiceContext context, T regulation) where T : class, IRegulation
Parameters
Type Name Description
TenantServiceContext context
T regulation
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

DeleteAsync(TenantServiceContext, int)

Declaration
public virtual Task DeleteAsync(TenantServiceContext context, int regulationId)
Parameters
Type Name Description
TenantServiceContext context
int regulationId
Returns
Type Description
Task

GetAsync<T>(TenantServiceContext, int)

Declaration
public virtual Task<T> GetAsync<T>(TenantServiceContext context, int regulationId) where T : class, IRegulation
Parameters
Type Name Description
TenantServiceContext context
int regulationId
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

GetAsync<T>(TenantServiceContext, string)

Declaration
public virtual Task<T> GetAsync<T>(TenantServiceContext context, string name) where T : class, IRegulation
Parameters
Type Name Description
TenantServiceContext context
string name
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

GetCaseOfCaseFieldAsync(TenantServiceContext, string)

Declaration
public virtual Task<string> GetCaseOfCaseFieldAsync(TenantServiceContext context, string caseFieldName)
Parameters
Type Name Description
TenantServiceContext context
string caseFieldName
Returns
Type Description
Task<string>

QueryAsync<T>(TenantServiceContext, Query)

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

QueryCountAsync(TenantServiceContext, Query)

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

QueryResultAsync<T>(TenantServiceContext, Query)

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

UpdateAsync<T>(TenantServiceContext, T)

Declaration
public virtual Task UpdateAsync<T>(TenantServiceContext context, T regulation) where T : class, IRegulation
Parameters
Type Name Description
TenantServiceContext context
T regulation
Returns
Type Description
Task
Type Parameters
Name Description
T

Implements

IRegulationService
ICrudService<TModel, TContext, TQuery>
ICreateService<TModel, TContext, TQuery>
IReadService<TModel, TContext, TQuery>

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