Method NotExists
NotExists<T>(IEntityService<T>, Expression<Func<T, bool>>, CancellationToken)
Checks if no entity of type T satisfies the specified condition using the IEntityService.
public static Task<bool> NotExists<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.