Method ToListDistinct
ToListDistinct<TValue>(string, QueryParameter<T>, CancellationToken)
Retrieves a distinct list of values of type TValue
from the entities,
based on the specified column name and query parameters.
public Task<List<TValue>> ToListDistinct<TValue>(string columnName, QueryParameter<T> queryParameter, CancellationToken cancellationToken = default)
Parameters
columnName
stringThe name of the column to select distinct values from.
queryParameter
QueryParameter<T>The query parameters to filter the entities.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<List<TValue>>
A task representing the asynchronous operation. The task result contains the list of distinct values.
Type Parameters
TValue
The type of the distinct values to retrieve.