/// <summary> /// Sends the specified command to the connection and builds a SqlDataReader object containing the results. /// Uses the default retry policy when executing the command. /// </summary> /// <param name="command">The command object that is required as per extension method declaration.</param> /// <returns>A System.Data.IDataReader object.</returns> public static IDataReader ExecuteReaderWithRetry(this IDbCommand command) { var connectionString = command.Connection.ConnectionString ?? string.Empty; return(ExecuteReaderWithRetry(command, RetryPolicyFactory.GetDefaultSqlCommandRetryPolicyByConnectionString(connectionString))); }