Show / Hide Table of Contents

Interface IEmployeeService

Payroll employee service

Inherited Members
ICrudService<IEmployee, TenantServiceContext, DivisionQuery>.UpdateAsync<T>(TenantServiceContext, T)
ICreateService<IEmployee, TenantServiceContext, DivisionQuery>.CreateAsync<T>(TenantServiceContext, T)
ICreateService<IEmployee, TenantServiceContext, DivisionQuery>.DeleteAsync(TenantServiceContext, int)
IReadService<IEmployee, TenantServiceContext, DivisionQuery>.QueryAsync<T>(TenantServiceContext, DivisionQuery)
IReadService<IEmployee, TenantServiceContext, DivisionQuery>.QueryCountAsync(TenantServiceContext, DivisionQuery)
IReadService<IEmployee, TenantServiceContext, DivisionQuery>.QueryResultAsync<T>(TenantServiceContext, DivisionQuery)
IReadService<IEmployee, TenantServiceContext, DivisionQuery>.GetAsync<T>(TenantServiceContext, int)
IAttributeService<TenantServiceContext>.GetAttributeAsync(TenantServiceContext, int, string)
IAttributeService<TenantServiceContext>.SetAttributeAsync(TenantServiceContext, int, string, string)
IAttributeService<TenantServiceContext>.DeleteAttributeAsync(TenantServiceContext, int, string)
Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface IEmployeeService : ICrudService<IEmployee, TenantServiceContext, DivisionQuery>, ICreateService<IEmployee, TenantServiceContext, DivisionQuery>, IReadService<IEmployee, TenantServiceContext, DivisionQuery>, IAttributeService<TenantServiceContext>

Methods

CreateEmployeesBulkAsync<T>(TenantServiceContext, IEnumerable<T>)

Query items and count of objects

Declaration
Task<int> CreateEmployeesBulkAsync<T>(TenantServiceContext context, IEnumerable<T> employees) where T : class, IEmployee
Parameters
Type Name Description
TenantServiceContext context

The service context

IEnumerable<T> employees

The employees to create

Returns
Type Description
Task<int>

The number of created employees

Type Parameters
Name Description
T

GetAsync<T>(TenantServiceContext, string)

Get employee by identifier

Declaration
Task<T> GetAsync<T>(TenantServiceContext context, string identifier) where T : class, IEmployee
Parameters
Type Name Description
TenantServiceContext context

The service context

string identifier

The employee identifier

Returns
Type Description
Task<T>

The employee, null if missing

Type Parameters
Name Description
T

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