Пример #1
0
        protected virtual void OnAfterRecordInserted(AfterRecordInsertedEventArgs e)
        {
            AfterRecordInsertedEventHandler handler = (AfterRecordInsertedEventHandler)Events[EventAfterRecordInserted];

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
        bool InsertCallback(int recordsAffected, Exception exception)
        {
            if (confirmation != null && recordsAffected > 0)
            {
                confirmation.ConfirmRecord();
            }

            AfterRecordInsertedEventArgs eAfterRecordInserted = new AfterRecordInsertedEventArgs(record, recordsAffected, exception, keys, values, confirmation);

            this.OnAfterRecordInserted(eAfterRecordInserted);
            return(eAfterRecordInserted.ExceptionHandled);
        }