コード例 #1
0
 /// <summary>
 /// Sends the specified command to the connection and builds a MySqlDataReader object by using the specified
 /// command behavior. Uses the default retry policy when executing the command.
 /// </summary>
 /// <param name="command">The command object that is required for the extension method declaration.</param>
 /// <param name="behavior">One of the enumeration values that specifies the command behavior.</param>
 /// <returns>A System.Data.MySqlClient.MySqlDataReader object.</returns>
 public static MySqlDataReader ExecuteReaderWithRetry(this MySqlCommand command, CommandBehavior behavior)
 {
     return((MySqlDataReader)command.ExecuteReaderWithRetry(behavior, RetryManager.Instance.GetDefaultMySqlCommandRetryPolicy()));
 }