Table of Contents

Method ToListDistinct

Namespace
Innova.Prism.Library.Services
Assembly
Innova.Prism.Library.dll

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 string

The name of the column to select distinct values from.

queryParameter QueryParameter<T>

The query parameters to filter the entities.

cancellationToken CancellationToken

The 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.