Method GetList
GetList<T>(IEntityService<T>, CancellationToken)
Gets a list of entities of type T using the IEntityService.
public static Task<List<T>> GetList<T>(this IEntityService<T> entityService, CancellationToken cancellationToken = default) where T : class
Parameters
entityService
IEntityService<T>The IEntityService instance.
cancellationToken
CancellationTokenThe cancellation token.
Returns
Type Parameters
T
The type of the entity.
GetList<T>(IEntityService<T>, Expression<Func<T, bool>>, CancellationToken)
Gets a list of entities of type T that satisfy the specified condition using the IEntityService.
public static Task<List<T>> GetList<T>(this IEntityService<T> entityService, Expression<Func<T, bool>> where, CancellationToken cancellationToken = default) where T : class
Parameters
entityService
IEntityService<T>The IEntityService instance.
where
Expression<Func<T, bool>>The condition to satisfy.
cancellationToken
CancellationTokenThe cancellation token.
Returns
Type Parameters
T
The type of the entity.