コード例 #1
0
        public List <string> GetAllParentNames(CslaObjectType cslaType)
        {
            var lst = new List <string>();

            foreach (var obj in this)
            {
                if (RelationRulesEngine.IsParentAllowed(obj.ObjectType, cslaType))
                {
                    lst.Add(obj.ObjectName);
                }
            }
            return(lst);
        }
コード例 #2
0
        public List <string> GetAllParentNames(CslaObjectInfo info)
        {
            var lst = new List <string>();

            foreach (CslaObjectInfo obj in this)
            {
                if (RelationRulesEngine.IsParentAllowed(obj.ObjectType, info.ObjectType) &&
                    obj != info)
                {
                    lst.Add(obj.ObjectName);
                }
            }
            return(lst);
        }