DataAnnotaions

Dec 22, 2010 at 6:11 AM

Hi,

Is there a way we can use DataAnnotations to validate a model instead of using SimpleRule ?

like

public class Student
{
            [Required(ErrorMessage="Please enter name")]
            public string Name
           {
                     get;
                     set;
           }
}

Wish you a happy X'Mas and New Year
Coordinator
Dec 23, 2010 at 6:11 AM

No Cinch does not support DataAnnotaions, would be quite a bit of work to get that to work, so not going to happen sorry.