Table of Contents

Method ToListDistinct

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

ToListDistinct<TResult>(string, QueryParameter<T>, CancellationToken)

Retrieves a distinct list of values of type TResult from the entities, based on the specified property name and query parameters.

Task<List<TResult>> ToListDistinct<TResult>(string name, QueryParameter<T> queryParameter, CancellationToken cancellationToken = default)

Parameters

name string

The name of the property to select distinct values from.

queryParameter QueryParameter<T>

The query parameters to filter the entities.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<TResult>>

A task representing the asynchronous operation. The task result contains the list of distinct values.

Type Parameters

TResult

The type of the distinct values to retrieve.