Example #1
0
 /// <summary>
 ///     This method raises the NonQueryComplete event
 /// </summary>
 /// <param name="executedCommand">This command lead to the provided result data set</param>
 /// <param name="affectedRecords">Number of records affected by the non-query command</param>
 protected virtual void RaiseOnNonQueryCompleteEvent(IDbCommand executedCommand, int affectedRecords) => NonQueryComplete?.Invoke(this, new NonQueryEventArgs(executedCommand, affectedRecords));
Example #2
0
 /// <summary>
 ///     Static event sink that can be bound to data services and hand the
 ///     event on to other potential subscribers
 /// </summary>
 /// <param name="sender">Sender (data service)</param>
 /// <param name="e">Non-Query Event Arguments</param>
 private static void OnNonQueryComplete(object sender, NonQueryEventArgs e) => NonQueryComplete?.Invoke(sender, e);