2015-06-21 29 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 –