Table of Contents

Method SetEntityValidationResult

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

SetEntityValidationResult<T>(IEntityValidation, T, string)

Sets the validation result for the specified entity.

public static Task SetEntityValidationResult<T>(this IEntityValidation entityValidation, T entity, string propertyName = "") where T : class

Parameters

entityValidation IEntityValidation

The entity validation instance.

entity T

The entity to validate.

propertyName string

The name of the property to validate. If empty, validates the entire entity.

Returns

Task

A task that represents the asynchronous operation.

Type Parameters

T

The type of the entity.