private void ReadQueryPanels(EntityMeta em, AggtBlocks result) { //导航实体的关系对象 var queryTypes = em.EntityType.GetCustomAttributes(typeof(ConditionQueryTypeAttribute), false); foreach (ConditionQueryTypeAttribute conAttri in queryTypes) { var surBlock = new ConditionBlock { EntityType = conAttri.QueryType, }; var surEM = CommonModel.Entities.Get(surBlock.EntityType); var surAggt = this.ReadCode(surEM, surBlock); result.Surrounders.Add(surAggt); } queryTypes = em.EntityType.GetCustomAttributes(typeof(NavigationQueryTypeAttribute), false); foreach (NavigationQueryTypeAttribute naviAttri in queryTypes) { var surBlock = new NavigationBlock { EntityType = naviAttri.QueryType, }; var surEM = CommonModel.Entities.Get(surBlock.EntityType); var surAggt = this.ReadCode(surEM, surBlock); result.Surrounders.Add(surAggt); } }