示例#1
0
 /// <summary>
 /// The	trigger	function for <see cref="CommandExecuted"/> event.
 /// </summary>
 /// <param name="commandText">The <see cref="FbCommand.CommandText"/> of the executed SQL command.</param>
 /// <param name="dataReader">The <see cref="FbDataReader"/>	instance with the returned data. If	the
 /// command	executed is	not	meant to return	data (ex: UPDATE, INSERT...) this parameter	must be
 /// setled to <b>null</b>.</param>
 /// <param name="rowsAffected">The rows	that were affected by the executed SQL command.	If the executed
 /// command	is not meant to	return this	kind of	information	(ex: SELECT) this parameter	must
 /// be setled to <b>-1</b>.</param>
 protected virtual void OnCommandExecuted(string commandText, FbDataReader dataReader, int rowsAffected)
 {
     if (CommandExecuted != null)
     {
         CommandExecutedEventArgs e = new CommandExecutedEventArgs(dataReader, commandText, rowsAffected);
         CommandExecuted(this, e);
     }
 }
		/// <summary>
		/// The	trigger	function for <see cref="CommandExecuted"/> event.
		/// </summary>
		/// <param name="commandText">The <see cref="FbCommand.CommandText"/> of the executed SQL command.</param>
		/// <param name="dataReader">The <see cref="FbDataReader"/>	instance with the returned data. If	the	
		/// command	executed is	not	meant to return	data (ex: UPDATE, INSERT...) this parameter	must be	
		/// setled to <b>null</b>.</param>
		/// <param name="rowsAffected">The rows	that were affected by the executed SQL command.	If the executed	
		/// command	is not meant to	return this	kind of	information	(ex: SELECT) this parameter	must 
		/// be setled to <b>-1</b>.</param>
		protected virtual void OnCommandExecuted(string	commandText, FbDataReader dataReader, int rowsAffected)	
		{
			if (CommandExecuted	!= null) 
			{
				CommandExecutedEventArgs e = new CommandExecutedEventArgs(dataReader, commandText, rowsAffected);
				CommandExecuted(this, e);
			}
		}