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
columnNamestringThe name of the column to select distinct values from.
queryParameterQueryParameter<T>The query parameters to filter the entities.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<List<TValue>>
 A task representing the asynchronous operation. The task result contains the list of distinct values.
Type Parameters
TValueThe type of the distinct values to retrieve.