Show / Hide Table of Contents

Class ReportTemplateService

Inheritance
object
ServiceBase
ReportTemplateService
Implements
IReportTemplateService
ICrudService<IReportTemplate, ReportServiceContext, ReportTemplateQuery>
ICreateService<IReportTemplate, ReportServiceContext, ReportTemplateQuery>
IReadService<IReportTemplate, ReportServiceContext, ReportTemplateQuery>
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 ReportTemplateService : ServiceBase, IReportTemplateService, ICrudService<IReportTemplate, ReportServiceContext, ReportTemplateQuery>, ICreateService<IReportTemplate, ReportServiceContext, ReportTemplateQuery>, IReadService<IReportTemplate, ReportServiceContext, ReportTemplateQuery>

Constructors

ReportTemplateService(PayrollHttpClient)

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

Methods

CreateAsync<T>(ReportServiceContext, T)

Declaration
public virtual Task<T> CreateAsync<T>(ReportServiceContext context, T template) where T : class, IReportTemplate
Parameters
Type Name Description
ReportServiceContext context
T template
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

DeleteAsync(ReportServiceContext, int)

Declaration
public virtual Task DeleteAsync(ReportServiceContext context, int templateId)
Parameters
Type Name Description
ReportServiceContext context
int templateId
Returns
Type Description
Task

GetAsync<T>(ReportServiceContext, int)

Declaration
public virtual Task<T> GetAsync<T>(ReportServiceContext context, int templateId) where T : class, IReportTemplate
Parameters
Type Name Description
ReportServiceContext context
int templateId
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

QueryAsync<T>(ReportServiceContext, ReportTemplateQuery)

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

QueryCountAsync(ReportServiceContext, ReportTemplateQuery)

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

QueryResultAsync<T>(ReportServiceContext, ReportTemplateQuery)

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

UpdateAsync<T>(ReportServiceContext, T)

Declaration
public virtual Task UpdateAsync<T>(ReportServiceContext context, T template) where T : class, IReportTemplate
Parameters
Type Name Description
ReportServiceContext context
T template
Returns
Type Description
Task
Type Parameters
Name Description
T

Implements

IReportTemplateService
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