Kirsten
Kirsten

Reputation: 18160

Which reference for [Required]

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

Upvotes: 0

Views: 33

Answers (1)

Marty
Marty

Reputation: 3555

RuleRequiredFieldAttribute

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

Upvotes: 0

Related Questions