在 Dev Express Xaf 中,我应该为业务类中的 [Required] 属性使用 DevExpress.ExpressApp.Model.Required 还是 System.ComponentModel.DataAnnotations.RequiredAttribute?
[后注] 我应该澄清我是否打算允许该属性可以为空。事实证明,如果我不希望它可以为空,那么我需要 System.ComponentModel.DataAnnotations.RequiredAttribute
在 Dev Express Xaf 中,我应该为业务类中的 [Required] 属性使用 DevExpress.ExpressApp.Model.Required 还是 System.ComponentModel.DataAnnotations.RequiredAttribute?
[后注] 我应该澄清我是否打算允许该属性可以为空。事实证明,如果我不希望它可以为空,那么我需要 System.ComponentModel.DataAnnotations.RequiredAttribute