Show / Hide Table of Contents

Interface IReadService<TModel, TContext, TQuery>

Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface IReadService<in TModel, in TContext, in TQuery> where TContext : IServiceContext where TQuery : Query
Type Parameters
Name Description
TModel
TContext
TQuery

Methods

GetAsync<T>(TContext, int)

Declaration
Task<T> GetAsync<T>(TContext context, int objectId) where T : class, TModel
Parameters
Type Name Description
TContext context
int objectId
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

QueryAsync<T>(TContext, TQuery)

Declaration
Task<List<T>> QueryAsync<T>(TContext context, TQuery query = null) where T : class, TModel
Parameters
Type Name Description
TContext context
TQuery query
Returns
Type Description
Task<List<T>>
Type Parameters
Name Description
T

QueryCountAsync(TContext, TQuery)

Declaration
Task<long> QueryCountAsync(TContext context, TQuery query = null)
Parameters
Type Name Description
TContext context
TQuery query
Returns
Type Description
Task<long>

QueryResultAsync<T>(TContext, TQuery)

Declaration
Task<QueryResult<T>> QueryResultAsync<T>(TContext context, TQuery query = null) where T : class, TModel
Parameters
Type Name Description
TContext context
TQuery query
Returns
Type Description
Task<QueryResult<T>>
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