/// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// odbcrowupdatedeventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this OdbcRowUpdatedEventHandler odbcrowupdatedeventhandler, Object sender, OdbcRowUpdatedEventArgs e, AsyncCallback callback)
        {
            if(odbcrowupdatedeventhandler == null) throw new ArgumentNullException("odbcrowupdatedeventhandler");

            return odbcrowupdatedeventhandler.BeginInvoke(sender, e, callback, null);
        }
Пример #2
0
Файл: Odbc.cs Проект: oeli/yafra
 /// <summary>
 /// Handles the RowUpdated event
 /// </summary>
 /// <param name="obj">The object that published the event</param>
 /// <param name="e">The OdbcRowUpdatedEventArgs</param>
 protected void RowUpdated(object obj, OdbcRowUpdatedEventArgs e)
 {
     base.RowUpdated(obj, e);
 }
Пример #3
0
 /// <devdoc>
 /// Listens for the RowUpdate event on a dataadapter to support UpdateBehavior.Continue
 /// </devdoc>
 private void OnOdbcRowUpdated(object sender, OdbcRowUpdatedEventArgs rowThatCouldNotBeWritten)
 {
     if (rowThatCouldNotBeWritten.RecordsAffected == 0)
      {
     if (rowThatCouldNotBeWritten.Errors != null)
     {
        rowThatCouldNotBeWritten.Row.RowError = SR.ExceptionMessageUpdateDataSetRowFailure;
        rowThatCouldNotBeWritten.Status = UpdateStatus.SkipCurrentRow;
     }
      }
 }