Example #1
0
        // TODO Same "IsChildType" name but different results!!! When fixing, check also templates.
        public static bool IsChildType(this CslaObjectType cslaType)
        {
            if (cslaType.IsEditableChild() ||
                cslaType.IsEditableChildCollection())
            {
                return(true);
            }

            return(false);
        }
Example #2
0
        public static bool IsCollectionType(this CslaObjectType cslaType)
        {
            if (cslaType.IsEditableRootCollection() ||
                cslaType.IsEditableChildCollection() ||
                cslaType.IsDynamicEditableRootCollection() ||
                cslaType.IsReadOnlyCollection())
            {
                return(true);
            }

            return(false);
        }
Example #3
0
        public static bool IsEditableType(this CslaObjectType cslaType)
        {
            if (cslaType.IsEditableChild() ||
                cslaType.IsEditableChildCollection() ||
                cslaType.IsEditableRoot() ||
                cslaType.IsEditableRootCollection() ||
                cslaType.IsEditableSwitchable() ||
                cslaType.IsDynamicEditableRoot() ||
                cslaType.IsDynamicEditableRootCollection())
            {
                return(true);
            }

            return(false);
        }
Example #4
0
 public static bool IsNotEditableChildCollection(this CslaObjectType cslaType)
 {
     return(!cslaType.IsEditableChildCollection());
 }