Dynamic data validation in ASP.NET MVC

Posted by user252160 on Stack Overflow See other posts from Stack Overflow or by user252160
Published on 2010-03-19T14:50:51Z Indexed on 2010/03/19 23:01 UTC
Read the original article Hit count: 280

Filed under:
|
|
|
|

I've recently read about the model validation capabilities of ASP.NET MVC which are all very cool until a certain point. What happens if the application doesn't know the data that it works with because it is all stored in DB and built together at runtime. Just like in Drupal, I'd like to be able to define custom types at runtime, and assign runtime validation rules as well. Obviously, the idea of assigning attributes to well established models is now gone. What else could be done ? I am thinking in terms of rules being stored as JSON objects in the DB fields or something like that.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about validation