Show / Hide Table of Contents

Interface ICaseRelationService

Payroll case relation service

Inherited Members
ICrudService<ICaseRelation, RegulationServiceContext, Query>.UpdateAsync<T>(RegulationServiceContext, T)
ICreateService<ICaseRelation, RegulationServiceContext, Query>.CreateAsync<T>(RegulationServiceContext, T)
ICreateService<ICaseRelation, RegulationServiceContext, Query>.DeleteAsync(RegulationServiceContext, int)
IReadService<ICaseRelation, RegulationServiceContext, Query>.QueryAsync<T>(RegulationServiceContext, Query)
IReadService<ICaseRelation, RegulationServiceContext, Query>.QueryCountAsync(RegulationServiceContext, Query)
IReadService<ICaseRelation, RegulationServiceContext, Query>.QueryResultAsync<T>(RegulationServiceContext, Query)
IReadService<ICaseRelation, RegulationServiceContext, Query>.GetAsync<T>(RegulationServiceContext, int)
Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface ICaseRelationService : ICrudService<ICaseRelation, RegulationServiceContext, Query>, ICreateService<ICaseRelation, RegulationServiceContext, Query>, IReadService<ICaseRelation, RegulationServiceContext, Query>

Methods

GetAsync<T>(RegulationServiceContext, string, string, string, string)

Get case relation by relation names

Declaration
Task<T> GetAsync<T>(RegulationServiceContext context, string sourceCaseName, string targetCaseName, string sourceCaseSlot = null, string targetCaseSlot = null) where T : class, ICaseRelation
Parameters
Type Name Description
RegulationServiceContext context

The service context

string sourceCaseName

The source case name

string targetCaseName

The target case name

string sourceCaseSlot

The source case slot

string targetCaseSlot

The target case slot

Returns
Type Description
Task<T>

The case relation, null if missing

Type Parameters
Name Description
T

RebuildAsync(RegulationServiceContext, int)

Rebuild the case relation

Declaration
Task RebuildAsync(RegulationServiceContext context, int caseRelationId)
Parameters
Type Name Description
RegulationServiceContext context

The service context

int caseRelationId

The case relation id

Returns
Type Description
Task

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