Table of Contents

Method GetList

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

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 CancellationToken

The cancellation token.

Returns

Task<List<T>>

A task representing the asynchronous operation.

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 CancellationToken

The cancellation token.

Returns

Task<List<T>>

A task representing the asynchronous operation.

Type Parameters

T

The type of the entity.