// 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); }
public static bool IsCollectionType(this CslaObjectType cslaType) { if (cslaType.IsEditableRootCollection() || cslaType.IsEditableChildCollection() || cslaType.IsDynamicEditableRootCollection() || cslaType.IsReadOnlyCollection()) { return(true); } return(false); }
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); }
public static bool IsNotEditableChildCollection(this CslaObjectType cslaType) { return(!cslaType.IsEditableChildCollection()); }