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; }
public override void NotifyDeleting() { base.NotifyDeleting(); if (OnNotifyDeleting_ViewDescriptor != null) { OnNotifyDeleting_ViewDescriptor(this); } SupportedViewModels.Clear(); ControlKind = null; }