protected virtual void OnAfterRecordInserted(AfterRecordInsertedEventArgs e) { AfterRecordInsertedEventHandler handler = (AfterRecordInsertedEventHandler)Events[EventAfterRecordInserted]; if (handler != null) { handler(this, e); } }
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); }