Is it possible to use the selfvalidation attribute with my validations located in a metadatatype? I’m using Enterprise Library 5’s Validation Application Block.
Is it possible to use the selfvalidation attribute with my validations located in a
Share
As I explained in my other answer, this isn’t supported out of the box. However, this can be achieved by hooking into the framework using depedency injection and replace the existing
AttributeValidatorFactoryimplementation. I written a post on my weblog on how to do this: Mixing Validation Application Block With DataAnnotation: What About SelfValidation?I hope this helps.