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