This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Do you have any util to get validation attributes from the model, for instance we want to get ValidateLenght and ValidatePresence attributes in run time mode. [ValidateLength(0, 500)] [ValidatePresence] private string _name;public string Name{ get { return Get(ref _name, "Name"); }set { Set(ref _name, value, "Name"); }} Thanks |
|
|
At the moment the only way to do this is via reflection. We are considering surfacing the internal entity model in a future release, but this will be post-3.0 if it happens. If you are using ASP.NET MVC, or just want to see some sample code, take a look at the xVal support described in http://www.mindscape.co.nz/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/ (it's down towards the end of the post). |
|