FluentValidation: Validation with ValidationContext

I am using FluentValidation in the current project.

I recently came across an AbstractValidators validation method

ValidationResult IValidator.Validate(ValidationContext<T> validationContext)

I did not find any use cases for using this method. When and how can verification of the use of this method be useful?

Thanks for any input.

+3
source share
1 answer

It has been a while, but I do not want. Restrain Jeremy Skiners to my question on Codeplex :

This [validation context] is used internally with FluentValidation. Your best chance of understanding how this works is to really read the source code. Here is a brief summary:

, , customer.Address.Line1

Ivalidatorselector , . , , ValidatorSelector.

+4

All Articles