Exemple #1
0
 /// <devdoc>
 /// Listens for the RowUpdate event on a dataadapter to support UpdateBehavior.Continue
 /// </devdoc>
 private void OnSqlRowUpdated(object sender, NpgsqlRowUpdatedEventArgs rowThatCouldNotBeWritten)
 {
     if (rowThatCouldNotBeWritten.RecordsAffected == 0)
     {
         if (rowThatCouldNotBeWritten.Errors != null)
         {
             rowThatCouldNotBeWritten.Row.RowError = Resources.ExceptionMessageUpdateDataSetRowFailure;
             rowThatCouldNotBeWritten.Status = UpdateStatus.SkipCurrentRow;
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Handles the RowUpdated event
 /// </summary>
 /// <param name="obj">The object that published the event</param>
 /// <param name="e">The NpgsqlRowUpdatedEventArgs</param>
 protected void RowUpdated(object obj, NpgsqlRowUpdatedEventArgs e)
 {
     base.RowUpdated(obj, e);
 }
Exemple #3
0
 /// <summary>
 /// Called when [NPGSQL row updated].
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="rowThatCouldNotBeWritten">The <see cref="NpgsqlRowUpdatedEventArgs"/> instance containing the event data.</param>
 /// <devdoc>
 /// Listens for the RowUpdate event on a dataadapter to support
 /// UpdateBehavior.Continue
 /// </devdoc>
 private void OnNpgsqlRowUpdated(object sender, NpgsqlRowUpdatedEventArgs rowThatCouldNotBeWritten) {
     if(rowThatCouldNotBeWritten.RecordsAffected == 0) {
         if(rowThatCouldNotBeWritten.Errors != null) {
             rowThatCouldNotBeWritten.Row.RowError = "DataSet Row 갱신에 실패했습니다.";
             rowThatCouldNotBeWritten.Status = UpdateStatus.SkipCurrentRow;
         }
     }
 }