SqlSet.AllAsync(String, CancellationToken) Method

Determines whether all elements of the set satisfy a condition.

Namespace: DbExtensions
Assembly: DbExtensions.dll

Overloads

Name Description
AllAsync(OperatorStringHandler, CancellationToken) Determines whether all elements of the set satisfy a condition.
AllAsync(String, CancellationToken) Determines whether all elements of the set satisfy a condition.

Syntax

public ValueTask<bool> AllAsync(
	string predicate,
	CancellationToken cancellationToken = default
)

Parameters

predicate  String

A SQL expression to test each row for a condition.

cancellationToken  CancellationToken  (Optional)

The CancellationToken to monitor for cancellation requests. The default is None.

Return Value

ValueTask<Boolean>
true if every element of the set passes the test in the specified predicate, or if the set is empty; otherwise, false.

See Also

Reference

SqlSet Class
DbExtensions Namespace

© Max Toro Q.