With a preview of release 2 of ASP.NET MVC 2 , we now have base classes for implementing our own providers for metadata and validation, in particular with ModelMetadataProvider and ModelValidatorProvider .
There is still no documentation on these documents (just released yesterday as a preview , so I'm not surprised and not disappointed).
Has anyone got custom implementations of any of these workers? A very simple example (metadata and validator for just “required”) would be great!
Many people may have the same idea, but I would like to use IronRuby to enter metadata, and I'm looking for any example to get started.
Thanks!
Edit : Looks like Brad Wilson ( xUnit.net fame) has some blog posts that are suitable for this exact thing! If he does not respond here, I will create a response with links when these messages are ready.
Edit2 : Sankarsan Bose over at CodingNDesign also has related posts . (ModelValidator at the moment). Including here for future reference.
source
share