Which reference for [Required]

33 views Asked by At

In Dev Express Xaf, should I be using DevExpress.ExpressApp.Model.Required or System.ComponentModel.DataAnnotations.RequiredAttribute for the [Required] attribute inside my business classes?

[Later note] I should have clarified whether it was my intent to allow the attribute to be nullable. It turns out that If I don't want it to be nullable then I need the System.ComponentModel.DataAnnotations.RequiredAttribute

1

There are 1 answers

1
Marty On BEST ANSWER

RuleRequiredFieldAttribute

the full path being - DevExpress.Persistent.Validation.RuleRequiredFieldAttribute