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
IEntityValidationThe entity validation instance.
entity
TThe entity to validate.
propertyName
stringThe 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.