Table of Contents

Method Exists

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

Exists<T>(IEntityService<T>, Expression<Func<T, bool>>, CancellationToken)

Checks if any entity of type T satisfies the specified condition using the IEntityService.

public static Task<bool> Exists<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<bool>

A task representing the asynchronous operation.

Type Parameters

T

The type of the entity.