Method ToListDistinct
ToListDistinct<TResult>(string, Expression<Func<T, bool>>, CancellationToken)
Retrieves a distinct list of results based on the specified criteria.
Task<List<TResult>> ToListDistinct<TResult>(string name, Expression<Func<T, bool>> where, CancellationToken cancellationToken = default)
Parameters
name
stringThe name of the result.
where
Expression<Func<T, bool>>The criteria to filter the results.
cancellationToken
CancellationTokenThe cancellation token.
Returns
Type Parameters
TResult
The type of the result.