Now I use validation based on custom DataAnnotation attributes and DataAnnotationsModelValidatorProvider. Is fluent validation more fluent? 🙂 Can it replace the DataAnnotations completely?
Now I use validation based on custom DataAnnotation attributes and DataAnnotationsModelValidatorProvider . Is fluent
Share
Sad answer is no. There are several validation rules in DataAnnotations that are currently not inforced in FluentValidation. That said, server-side implementing the same validations is a somewhat easy task, but having to implement them client side as well is a pain.
I know they are – and have been – working on a new version of FluentValidation that should be out soon, that adds support for more validations including custom ones (client side)