Show / Hide Table of Contents

Class LookupService

Inheritance
object
ServiceBase
LookupService
Implements
ILookupService
ICrudService<ILookup, RegulationServiceContext, Query>
ICreateService<ILookup, RegulationServiceContext, Query>
IReadService<ILookup, RegulationServiceContext, 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 LookupService : ServiceBase, ILookupService, ICrudService<ILookup, RegulationServiceContext, Query>, ICreateService<ILookup, RegulationServiceContext, Query>, IReadService<ILookup, RegulationServiceContext, Query>

Constructors

LookupService(PayrollHttpClient)

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

Methods

CreateAsync<T>(RegulationServiceContext, T)

Declaration
public virtual Task<T> CreateAsync<T>(RegulationServiceContext context, T lookup) where T : class, ILookup
Parameters
Type Name Description
RegulationServiceContext context
T lookup
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

DeleteAsync(RegulationServiceContext, int)

Declaration
public virtual Task DeleteAsync(RegulationServiceContext context, int lookupId)
Parameters
Type Name Description
RegulationServiceContext context
int lookupId
Returns
Type Description
Task

GetAsync<T>(RegulationServiceContext, int)

Declaration
public virtual Task<T> GetAsync<T>(RegulationServiceContext context, int lookupId) where T : class, ILookup
Parameters
Type Name Description
RegulationServiceContext context
int lookupId
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

GetAsync<T>(RegulationServiceContext, string)

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

QueryAsync<T>(RegulationServiceContext, Query)

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

QueryCountAsync(RegulationServiceContext, Query)

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

QueryResultAsync<T>(RegulationServiceContext, Query)

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

UpdateAsync<T>(RegulationServiceContext, T)

Declaration
public virtual Task UpdateAsync<T>(RegulationServiceContext context, T lookup) where T : class, ILookup
Parameters
Type Name Description
RegulationServiceContext context
T lookup
Returns
Type Description
Task
Type Parameters
Name Description
T

Implements

ILookupService
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