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_Muhblah != null)
     {
         OnNotifyDeleting_Muhblah(this);
     }
     TestCustomObjects_List_Nav.Clear();
     TestCustomObjects_ManyList_Nav.Clear();
     TestCustomObjects_Nav     = null;
     TestCustomObjects_One_Nav = null;
 }