示例#1
0
        public void RaiseObjectDeletingEvent(DomainObject domainObject)
        {
            ArgumentUtility.CheckNotNull("domainObject", domainObject);

            _listenerCollection.ObjectDeleting(_clientTransaction, domainObject);
            _extensionCollection.ObjectDeleting(_clientTransaction, domainObject);
            using (EnterScopeOnDemand())
            {
                domainObject.OnDeleting(EventArgs.Empty);
            }
        }