Table of Contents

Method MapAndPermissionCheck

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

MapAndPermissionCheck<TResult>(Operation, List<TResult>)

Maps the provided entities to type T and performs permission check for the specified operation.

protected List<T> MapAndPermissionCheck<TResult>(Operation operation, List<TResult> entities) where TResult : class

Parameters

operation Operation

The operation to perform permission check.

entities List<TResult>

The list of entities to map and perform permission check.

Returns

List<T>

A list of mapped entities.

Type Parameters

TResult

The type of the entities to map.

MapAndPermissionCheck<TResult>(ValidationRuleSetEnum, List<TResult>)

Maps the provided entities to type T and performs permission check for the specified operation.

protected List<T> MapAndPermissionCheck<TResult>(ValidationRuleSetEnum validationRule, List<TResult> entities) where TResult : class

Parameters

validationRule ValidationRuleSetEnum

The validation rule set.

entities List<TResult>

The list of entities to map and perform permission check.

Returns

List<T>

A list of mapped entities.

Type Parameters

TResult

The type of the entities to map.