Method ValidateResult
- Namespace
- Innova.Data.Validation
- Assembly
- Innova.Data.dll
ValidateResult<T>(ValidationResult, T)
Validates the validation result and throws a ValidationException if the result is not valid.
public static void ValidateResult<T>(this ValidationResult validationResult, T entity) where T : class
Parameters
validationResult
ValidationResultThe validation result.
entity
TThe entity.
Type Parameters
T
The type of the entity.