Data Annotations / Validation and Dynamic Values

If some of my models have dynamic validation conditions (i.e. the string length can be at least 8 or 12 depending on the database value or some other dynamic value), is it possible to use data annotation for verification?

From what I understand, the values ​​of any parameter (StringLength min / max value example) should be really static. Are there alternatives for applications with dynamic validation values?

+4
source share
1 answer
+2

All Articles