【原创】XAF CriteriaOperator 使用方式汇总

1.CriteriaPropertyEditor

  [EditorAlias(EditorAliases.CriteriaPropertyEditor)]
        [CriteriaOptions("archivetype")]
        [XafDisplayName("高级查询模块")]
        [ModelDefault("RowCount", "5")]
        [Appearance("", Criteria = "eUseCriteria=0", Visibility = ViewItemVisibility.Hide)]
        public string criteriagroupoperator { get; set; }

        [Browsable(false)]
        public Type archivetype { get; set; }

  

 var  Criteria=  CriteriaEditorHelper.GetCriteriaOperator(
                    currentObject.criteriagroupoperator,
                    typeof(YourObject),
                    ObjectSpace);

 

posted @ 2018-08-08 11:40  GudamPeter  阅读(434)  评论(0编辑  收藏  举报