Last day or so, I tried to figure out the same thing. It seems that creating a custom ModelMetadataProvider and ModelValidatorProvider is the way to go if you have a metadata / validation configuration stored in a database, in some kind of file or elsewhere.
I found this great starting point.
Have you hacked the decision? NTN
Mana.
source share