示例#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;
        }
示例#2
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_RequiredParent != null)
            {
                OnNotifyDeleting_RequiredParent(this);
            }

            // FK_Parent_of_Children ZeroOrMore
            foreach (NHibernatePersistenceObject x in Children)
            {
                x.ParentsToDelete.Add(this);
                ChildrenToDelete.Add(x);
            }

            Children.Clear();
        }
示例#3
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_OrderedOneEnd != null)
            {
                OnNotifyDeleting_OrderedOneEnd(this);
            }

            // FK_OneEnd_hasMany_NEnds ZeroOrMore
            foreach (NHibernatePersistenceObject x in NEnds)
            {
                x.ParentsToDelete.Add(this);
                ChildrenToDelete.Add(x);
            }

            NEnds.Clear();
        }
示例#4
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_One_to_N_relations_One != null)
            {
                OnNotifyDeleting_One_to_N_relations_One(this);
            }

            // FK_OneSide_connectsTo_NSide ZeroOrMore
            foreach (NHibernatePersistenceObject x in NSide)
            {
                x.ParentsToDelete.Add(this);
                ChildrenToDelete.Add(x);
            }

            NSide.Clear();
        }
示例#5
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_Fragebogen != null)
            {
                OnNotifyDeleting_Fragebogen(this);
            }

            // FK_Ein_Fragebogen_enthaelt_gute_Antworten ZeroOrMore
            foreach (NHibernatePersistenceObject x in Antworten)
            {
                x.ParentsToDelete.Add(this);
                ChildrenToDelete.Add(x);
            }

            Antworten.Clear();
            Student.Clear();
        }
示例#6
0
        public override void NotifyDeleting()
        {
            base.NotifyDeleting();
            if (OnNotifyDeleting_Enumeration != null)
            {
                OnNotifyDeleting_Enumeration(this);
            }

            // FK_Enumeration_has_EnumerationEntries ZeroOrMore
            foreach (NHibernatePersistenceObject x in EnumerationEntries)
            {
                x.ParentsToDelete.Add(this);
                ChildrenToDelete.Add(x);
            }
            // should fetch && remember parent for EnumerationProperty_has_Enumeration_RelationEntry
            // should fetch && remember parent for EnumParameter_has_Enumeration_RelationEntry

            EnumerationEntries.Clear();
        }