Ejemplo n.º 1
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_Muhblah != null)
            {
                OnNotifyDeleting_Muhblah(this);
            }

            // FK_MB_Lst_Role_hasOther_TCO_Role
            if (TestCustomObjects_Nav != null)
            {
                ((NHibernatePersistenceObject)TestCustomObjects_Nav).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)TestCustomObjects_Nav);
            }
            // FK_MB_One_Role_loves_TCO_One_Role
            if (TestCustomObjects_One_Nav != null)
            {
                ((NHibernatePersistenceObject)TestCustomObjects_One_Nav).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)TestCustomObjects_One_Nav);
            }
            // FK_MB_Role_has_TCO_Lst_Role ZeroOrMore
            foreach (NHibernatePersistenceObject x in TestCustomObjects_List_Nav)
            {
                x.ParentsToDelete.Add(this);
                ChildrenToDelete.Add(x);
            }

            TestCustomObjects_List_Nav.Clear();
            TestCustomObjects_ManyList_Nav.Clear();
            TestCustomObjects_Nav     = null;
            TestCustomObjects_One_Nav = null;
        }
Ejemplo n.º 2
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_Icon != null)
            {
                OnNotifyDeleting_Icon(this);
            }

            // should fetch && remember parent for BoolProperty_has_Icon_RelationEntry
            // should fetch && remember parent for BoolProperty_has_Icon_RelationEntry
            // should fetch && remember parent for BoolProperty_has_Icon_RelationEntry
            // should fetch && remember parent for DataType_has_Icon_RelationEntry
            // FK_Icon_has_Blob
            if (Blob != null)
            {
                ((NHibernatePersistenceObject)Blob).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Blob);
            }
            // FK_Icon_has_Module
            if (Module != null)
            {
                ((NHibernatePersistenceObject)Module).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Module);
            }
            // should fetch && remember parent for Method_has_Icon_RelationEntry
        }
Ejemplo n.º 3
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_ControlKind != null)
            {
                OnNotifyDeleting_ControlKind(this);
            }

            // FK_ChildControlKinds_have_a_Parent
            if (Parent != null)
            {
                ((NHibernatePersistenceObject)Parent).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Parent);
            }
            // FK_ControlKind_has_Module
            if (Module != null)
            {
                ((NHibernatePersistenceObject)Module).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Module);
            }
            // should fetch && remember parent for DataType_may_request_ControlKind_RelationEntry
            // should fetch && remember parent for FilterConfiguration_has_ControlKind_RelationEntry
            // should fetch && remember parent for ViewModelDescriptor_has_ControlKind_RelationEntry
            // should fetch && remember parent for Property_may_request_ControlKind_RelationEntry
            // should fetch && remember parent for NavigationSearchScreen_has_ControlKind_RelationEntry
            // should fetch && remember parent for NavigationSearchScreen_has_ControlKind_RelationEntry
            // should fetch && remember parent for ViewDescriptor_is_a_ControlKind_RelationEntry
            // should fetch && remember parent for ViewModelDescriptor_displayed_by_ControlKind_RelationEntry
            // should fetch && remember parent for ViewModelDescriptor_displayed_by_ControlKind_RelationEntry
            // should fetch && remember parent for ViewModelDescriptor_displayed_by_ControlKind_RelationEntry
            // should fetch && remember parent for ViewModelDescriptor_displayedInGridBy_ControlKind_RelationEntry

            ChildControlKinds.Clear();
            Parent = null;
        }
Ejemplo n.º 4
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_AbstractModuleMember != null)
            {
                OnNotifyDeleting_AbstractModuleMember(this);
            }

            // FK_AbstractModuleMember_has_Module
            if (Module != null)
            {
                ((NHibernatePersistenceObject)Module).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Module);
            }
            // FK_AbstractModuleMember_was_ChangedBy
            if (ChangedBy != null)
            {
                ((NHibernatePersistenceObject)ChangedBy).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)ChangedBy);
            }
            // FK_AbstractModuleMember_was_CreatedBy
            if (CreatedBy != null)
            {
                ((NHibernatePersistenceObject)CreatedBy).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)CreatedBy);
            }

            ChangedBy = null;
            CreatedBy = null;
        }
Ejemplo n.º 5
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_ViewDescriptor != null)
            {
                OnNotifyDeleting_ViewDescriptor(this);
            }

            // FK_View_has_ControlRef
            if (ControlRef != null)
            {
                ((NHibernatePersistenceObject)ControlRef).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)ControlRef);
            }
            // FK_ViewDescriptor_has_Module
            if (Module != null)
            {
                ((NHibernatePersistenceObject)Module).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Module);
            }
            // FK_ViewDescriptor_is_a_ControlKind
            if (ControlKind != null)
            {
                ((NHibernatePersistenceObject)ControlKind).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)ControlKind);
            }

            SupportedViewModels.Clear();
            ControlKind = null;
        }
Ejemplo n.º 6
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_Visual != null)
            {
                OnNotifyDeleting_Visual(this);
            }

            // should fetch && remember parent for Template_has_Visual_RelationEntry
            // FK_Visual_has_Method
            if (Method != null)
            {
                ((NHibernatePersistenceObject)Method).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Method);
            }
            // FK_Visual_has_Property
            if (Property != null)
            {
                ((NHibernatePersistenceObject)Property).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Property);
            }

            Children.Clear();
            ContextMenu.Clear();
            Method   = null;
            Property = null;
        }
Ejemplo n.º 7
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_DefaultPropertyValue != null)
            {
                OnNotifyDeleting_DefaultPropertyValue(this);
            }

            // FK_DefaultPropertyValue_was_ChangedBy
            if (ChangedBy != null)
            {
                ((NHibernatePersistenceObject)ChangedBy).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)ChangedBy);
            }
            // FK_DefaultPropertyValue_was_CreatedBy
            if (CreatedBy != null)
            {
                ((NHibernatePersistenceObject)CreatedBy).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)CreatedBy);
            }
            // FK_Property_has_DefaultValue
            if (Property != null)
            {
                ((NHibernatePersistenceObject)Property).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Property);
            }

            ChangedBy = null;
            CreatedBy = null;
        }
Ejemplo n.º 8
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_Template != null)
            {
                OnNotifyDeleting_Template(this);
            }

            // FK_Template_has_DisplayedTypeAssembly
            if (DisplayedTypeAssembly != null)
            {
                ((NHibernatePersistenceObject)DisplayedTypeAssembly).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)DisplayedTypeAssembly);
            }
            // FK_Template_has_VisualTree
            if (VisualTree != null)
            {
                ((NHibernatePersistenceObject)VisualTree).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)VisualTree);
            }

            Menu.Clear();
            DisplayedTypeAssembly = null;
            VisualTree            = null;
        }
Ejemplo n.º 9
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_CLRObjectParameter != null)
            {
                OnNotifyDeleting_CLRObjectParameter(this);
            }

            // FK_ClrObjectParameter_isOf_Type
            if (Type != null)
            {
                ((NHibernatePersistenceObject)Type).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Type);
            }
        }
Ejemplo n.º 10
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_ObjectReferenceParameter != null)
            {
                OnNotifyDeleting_ObjectReferenceParameter(this);
            }

            // FK_ObjectParameter_has_ObjectClass
            if (ObjectClass != null)
            {
                ((NHibernatePersistenceObject)ObjectClass).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)ObjectClass);
            }
        }
Ejemplo n.º 11
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_GroupMembership != null)
            {
                OnNotifyDeleting_GroupMembership(this);
            }

            // FK_GroupMembership_has_Group
            if (Group != null)
            {
                ((NHibernatePersistenceObject)Group).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Group);
            }
        }
Ejemplo n.º 12
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_RequiredParentChild != null)
            {
                OnNotifyDeleting_RequiredParentChild(this);
            }

            // FK_Parent_of_Children
            if (Parent != null)
            {
                ((NHibernatePersistenceObject)Parent).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Parent);
            }
        }
Ejemplo n.º 13
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_EnumDefaultValue != null)
            {
                OnNotifyDeleting_EnumDefaultValue(this);
            }

            // FK_EnumDefaultValue_defaults_to_EnumValue
            if (EnumValue != null)
            {
                ((NHibernatePersistenceObject)EnumValue).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)EnumValue);
            }
        }
Ejemplo n.º 14
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_Antwort != null)
            {
                OnNotifyDeleting_Antwort(this);
            }

            // FK_Ein_Fragebogen_enthaelt_gute_Antworten
            if (Fragebogen != null)
            {
                ((NHibernatePersistenceObject)Fragebogen).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Fragebogen);
            }
        }
Ejemplo n.º 15
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_SequenceData != null)
            {
                OnNotifyDeleting_SequenceData(this);
            }

            // FK_Sequence_has_Data
            if (Sequence != null)
            {
                ((NHibernatePersistenceObject)Sequence).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Sequence);
            }
        }
Ejemplo n.º 16
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_PropertyFilterConfiguration != null)
            {
                OnNotifyDeleting_PropertyFilterConfiguration(this);
            }

            // FK_Property_Has_PropertyFilterConfiguration
            if (Property != null)
            {
                ((NHibernatePersistenceObject)Property).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Property);
            }
        }
Ejemplo n.º 17
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_CompoundObjectParameter != null)
            {
                OnNotifyDeleting_CompoundObjectParameter(this);
            }

            // FK_CPParameter_has_CompoundObject
            if (CompoundObject != null)
            {
                ((NHibernatePersistenceObject)CompoundObject).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)CompoundObject);
            }
        }
Ejemplo n.º 18
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_EnumParameter != null)
            {
                OnNotifyDeleting_EnumParameter(this);
            }

            // FK_EnumParameter_has_Enumeration
            if (Enumeration != null)
            {
                ((NHibernatePersistenceObject)Enumeration).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Enumeration);
            }
        }
Ejemplo n.º 19
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_CompoundObjectProperty != null)
            {
                OnNotifyDeleting_CompoundObjectProperty(this);
            }

            // FK_CompoundObjectProperty_has_CompoundObjectDefinition
            if (CompoundObjectDefinition != null)
            {
                ((NHibernatePersistenceObject)CompoundObjectDefinition).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)CompoundObjectDefinition);
            }
        }
Ejemplo n.º 20
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_ObjectClassFilterConfiguration != null)
            {
                OnNotifyDeleting_ObjectClassFilterConfiguration(this);
            }

            // FK_ObjectClass_Has_FilterConfigurations
            if (ObjectClass != null)
            {
                ((NHibernatePersistenceObject)ObjectClass).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)ObjectClass);
            }
        }
Ejemplo n.º 21
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_CalculatedObjectReferenceProperty != null)
            {
                OnNotifyDeleting_CalculatedObjectReferenceProperty(this);
            }

            // FK_CalculatedReference_references_ReferencedClass
            if (ReferencedClass != null)
            {
                ((NHibernatePersistenceObject)ReferencedClass).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)ReferencedClass);
            }

            Inputs.Clear();
        }
Ejemplo n.º 22
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_OrderedNEnd != null)
            {
                OnNotifyDeleting_OrderedNEnd(this);
            }

            // FK_OneEnd_hasMany_NEnds
            if (OneEnd != null)
            {
                ((NHibernatePersistenceObject)OneEnd).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)OneEnd);
            }

            OneEnd = null;
        }
Ejemplo n.º 23
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_InstanceConstraint != null)
            {
                OnNotifyDeleting_InstanceConstraint(this);
            }

            // FK_Constraint_on_Constrained
            if (Constrained != null)
            {
                ((NHibernatePersistenceObject)Constrained).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Constrained);
            }

            Constrained = null;
        }
Ejemplo n.º 24
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_One_to_N_relations_N != null)
            {
                OnNotifyDeleting_One_to_N_relations_N(this);
            }

            // FK_OneSide_connectsTo_NSide
            if (OneSide != null)
            {
                ((NHibernatePersistenceObject)OneSide).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)OneSide);
            }

            OneSide = null;
        }
Ejemplo n.º 25
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_TestObjClass != null)
            {
                OnNotifyDeleting_TestObjClass(this);
            }

            // FK_TestObjClass_has_ObjectProp
            if (ObjectProp != null)
            {
                ((NHibernatePersistenceObject)ObjectProp).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)ObjectProp);
            }

            ObjectProp = null;
        }
Ejemplo n.º 26
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_Group != null)
            {
                OnNotifyDeleting_Group(this);
            }

            // FK_Group_has_Module
            if (Module != null)
            {
                ((NHibernatePersistenceObject)Module).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Module);
            }
            // should fetch && remember parent for GroupMembership_has_Group_RelationEntry

            Member.Clear();
        }
Ejemplo n.º 27
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_ObjectReferenceProperty != null)
            {
                OnNotifyDeleting_ObjectReferenceProperty(this);
            }

            // FK_RelationEnd_has_Navigator
            if (RelationEnd != null)
            {
                ((NHibernatePersistenceObject)RelationEnd).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)RelationEnd);
            }

            Methods.Clear();
            RelationEnd = null;
        }
Ejemplo n.º 28
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_CompoundObject != null)
            {
                OnNotifyDeleting_CompoundObject(this);
            }

            // should fetch && remember parent for CompoundObjectProperty_has_CompoundObject_RelationEntry
            // should fetch && remember parent for CompoundObjectParameter_has_CompoundObject_RelationEntry
            // FK_Presentable_may_has_DefaultPropViewModelDescriptor
            if (DefaultPropertyViewModelDescriptor != null)
            {
                ((NHibernatePersistenceObject)DefaultPropertyViewModelDescriptor).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)DefaultPropertyViewModelDescriptor);
            }

            DefaultPropertyViewModelDescriptor = null;
        }
Ejemplo n.º 29
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_ConstraintInvocation != null)
            {
                OnNotifyDeleting_ConstraintInvocation(this);
            }

            // should fetch && remember children for InvokingConstraint_invokes_ConstraintInvocation_RelationEntry
            // should fetch && remember children for InvokingConstraint_invokes_ConstraintInvocation_RelationEntry
            // FK_ConstraintInvocation_has_TypeRef
            if (Implementor != null)
            {
                ((NHibernatePersistenceObject)Implementor).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)Implementor);
            }

            Implementor = null;
        }
Ejemplo n.º 30
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_InvokingConstraint != null)
            {
                OnNotifyDeleting_InvokingConstraint(this);
            }

            // FK_Constraint_invokes_GetErrorTextInvocation
            if (GetErrorTextInvocation != null)
            {
                ((NHibernatePersistenceObject)GetErrorTextInvocation).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)GetErrorTextInvocation);
            }
            // FK_Constraint_invokes_IsValidInvocation
            if (IsValidInvocation != null)
            {
                ((NHibernatePersistenceObject)IsValidInvocation).ChildrenToDelete.Add(this);
                ParentsToDelete.Add((NHibernatePersistenceObject)IsValidInvocation);
            }
        }