This project is read-only.
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 5:01 PM by amanek

comments

amanek wrote Jun 8, 2012 at 11: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 11:26 PM

amanek wrote Jun 10, 2012 at 2:50 PM

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

wrote Feb 14, 2013 at 12:35 AM

wrote May 16, 2013 at 5:07 AM

wrote May 16, 2013 at 5:07 AM

wrote Jun 14, 2013 at 8:21 AM

wrote Sep 2, 2013 at 5:01 PM