1

Closed

ValidationAttributeAdapterFactory.Create does not support ValidationAttribute inheritance

description

DAValidation will fail to validate if you are using your own subclassed ValidationAttributes (e.g for using a custom localization provider).
 
The PredefinedCreators dictionary lookup does not consider inheritance when checking for a matching type.
 
I modified the code per the attached patch file.

file attachments

Closed Sep 2, 2013 at 4:01 PM by amanek

comments

amanek wrote Jun 8, 2012 at 10:25 PM

Thanks for pointing this issue and submitting the patch, in next days I will have free time to test it and integrate into project.

wrote Jun 8, 2012 at 10:26 PM

amanek wrote Jun 10, 2012 at 1:50 PM

I've added code you provided to ValidationAttributeAdapterFactory. Next 1.0.5.0 release will contain this change.

wrote Feb 13, 2013 at 11:35 PM

wrote May 16, 2013 at 4:07 AM

wrote May 16, 2013 at 4:07 AM

wrote Jun 14, 2013 at 7:21 AM

wrote Sep 2, 2013 at 4:01 PM