2015-06-21 30 views
0

哪个参考在Dev Express Xaf中,我应该使用 DevExpress.ExpressApp.Model.Required或System.ComponentModel.DataAnnotations.RequiredAttribute作为我的业务类中的[Required]属性?[必填]

[后记] 我应该澄清是否允许该属性为空。事实证明,如果我不希望它是可空的话,我需要的System.ComponentModel.DataAnnotations.RequiredAttribute

回答

0

RuleRequiredFieldAttribute

的完整路径, - DevExpress.Persistent.Validation.RuleRequiredFieldAttribute

+0

见Dennis的答案在https://www.devexpress.com/Support/Center/Question/Details/T259215 –