【原创】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);