private ModuleMeta FindModule(ModuleMeta module, string keyName)
        {
            if (module.KeyLabel == keyName)
            {
                return(module);
            }

            foreach (var child in module.Children)
            {
                var m = this.FindModule(child, keyName);
                if (m != null)
                {
                    return(m);
                }
            }
            return(null);
        }
        private ModuleMeta FindModule(ModuleMeta module, Type entityType)
        {
            if (module.EntityType == entityType)
            {
                return(module);
            }

            foreach (var child in module.Children)
            {
                var m = this.FindModule(child, entityType);
                if (m != null)
                {
                    return(m);
                }
            }

            return(null);
        }
        /// <summary>
        /// 添加一个根模块
        /// </summary>
        /// <param name="module"></param>
        public ModuleMeta AddRoot(ModuleMeta module)
        {
            this._roots.Add(module);

            return(module);
        }