/// <summary>
 /// Cancels the specified command.
 /// </summary>
 /// <param name="command">The database command to cancel.</param>
 protected void DatabaseQueryCancel(DbCommand command)
 {
     // Cancel the command.
     command.Cancel();
     // Call the event handler.
     this.OnQueryCanceling(command.Query);
 }