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); }
        }

 

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2021-06-12
  • 2022-01-24
  • 2021-11-28
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案