Method ToListDistinct
ToListDistinct<TValue>(Expression<Func<T, TValue>>, QueryParameter<T>, CancellationToken)
Retrieves a distinct list of values from the entities based on the specified selector and query parameters.
public Task<List<TValue>> ToListDistinct<TValue>(Expression<Func<T, TValue>> selector, QueryParameter<T> queryParameter, CancellationToken cancellationToken = default)
Parameters
selector
Expression<Func<T, TValue>>The selector expression to specify the value.
queryParameter
QueryParameter<T>The query parameters.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<List<TValue>>
A task that represents the asynchronous operation. The task result contains the list of distinct values.
Type Parameters
TValue
The type of the value to select.