public bool IsUpdaterType(CslaObjectType cslaType) { if (cslaType.IsEditableRoot() || cslaType.IsEditableChild() || cslaType.IsDynamicEditableRoot() || cslaType.IsEditableSwitchable()) { return(true); } return(false); }
// Dynamic Root stereotype can't have children private static bool CanHaveChild(CslaObjectType parent) { _specificErrorMessage = "A Dynamic Root stereotype cannot have a child."; if (parent.IsDynamicEditableRoot()) { BrokenRuleMsg = "\r\nRelation rule: " + _specificErrorMessage + " * * *\r\n"; BrokenRuleMsg += parent + " cannot have a ChildType."; return(false); } return(true); }
public static bool IsObjectType(this CslaObjectType cslaType) { if (cslaType.IsEditableRoot() || cslaType.IsEditableChild() || cslaType.IsEditableSwitchable() || cslaType.IsDynamicEditableRoot() || cslaType.IsReadOnlyObject()) { return(true); } return(false); }
public static bool IsNotDynamicEditableRoot(this CslaObjectType cslaType) { return(!cslaType.IsDynamicEditableRoot()); }