/// <summary> /// Execute Reader /// </summary> /// <param name="conn"></param> /// <param name="cmdText"></param> /// <param name="parameters"></param> /// <returns></returns> public static MySqlDataReader ExecuteReader(this MySqlConnection conn, string cmdText, MySqlParameter[] parameters) { conn.CheckNull(nameof(conn)); return(conn.ExecuteReader(cmdText, parameters, CommandType.Text, null)); }
/// <summary> /// Execute Reader /// </summary> /// <param name="conn"></param> /// <param name="cmdText"></param> /// <param name="commandType"></param> /// <param name="transaction"></param> /// <returns></returns> public static MySqlDataReader ExecuteReader(this MySqlConnection conn, string cmdText, CommandType commandType, MySqlTransaction transaction) { conn.CheckNull(nameof(conn)); return(conn.ExecuteReader(cmdText, null, commandType, transaction)); }