【原创】XAF属性设置不为空
XAF字段属性RuleRequiredField设置不为空
private string _FatherName; [XafDisplayName("父亲姓名"), Size(50)] [RuleRequiredField(DefaultContexts.Save, CustomMessageTemplate = "父亲姓名不可为空")] public string FatherName { get { return _FatherName; } set { SetPropertyValue<string>(nameof(FatherName), ref _FatherName, value); } }
我是一个爱笑,认真记录每一天进步的博主.
转载请注明出处,商用请征得作者本人同意,谢谢!!!