public List <string> GetAllChildNames(CslaObjectType cslaType)
        {
            var lst = new List <string>();

            foreach (CslaObjectInfo obj in this)
            {
                if (RelationRulesEngine.IsChildAllowed(obj.ObjectType, cslaType))
                {
                    lst.Add(obj.ObjectName);
                }
            }
            return(lst);
        }
        public List <string> GetAllChildNames(CslaObjectInfo info)
        {
            var list = new List <string>();

            foreach (CslaObjectInfo obj in this)
            {
                if (RelationRulesEngine.IsChildAllowed(obj.ObjectType, info.ObjectType) &&
                    !Equals(obj, info))
                {
                    list.Add(obj.ObjectName);
                }
            }
            return(list);
        }