Esempio n. 1
0
        protected override void GenerateNodesCore(ModelNode node)
        {
            node.DontUseCaching();
            var modelMapperTypeInfos = XafTypesInfo.Instance.FindTypeInfo(typeof(IModelModelMap)).Descendants.Where(info
                                                                                                                    => info.FindAttribute <ModelAbstractClassAttribute>(false) == null && info.IsInterface);

            if (node.Id == ModelMapperContextNodeGenerator.Default)
            {
                foreach (var info in modelMapperTypeInfos)
                {
                    AddNode(node, info);
                }
            }
        }