Table of Contents

Method Validate

Namespace
Innova.Data.Validation
Assembly
Innova.Data.dll

Validate(T, ValidationRuleSetEnum, CancellationToken)

Validates the specified entity using the specified validation rule set.

Task<ValidationResult> Validate(T entity, ValidationRuleSetEnum validationRuleSetEnum, CancellationToken cancellationToken = default)

Parameters

entity T

The entity to be validated.

validationRuleSetEnum ValidationRuleSetEnum

The validation rule set to be used.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<ValidationResult>

A task that represents the asynchronous validation operation.