Witam,
stworzyłem sobie prostą klasę, która łączy się z bazą danych MySQL.
Używam .NET 3.5 - język C# aplikacja okienkowa. Do połaczeń z MySQL używam mysql-connector-net-5.0.8.1

Klasa:
namespace RSMySQLAPI
{

public class TMySQLConnection
{
public MySqlConnection FMySQLConnection;
public MySqlDataReader FMySQLDataReader;

public TMySQLConnection(string aServerName, string aUserName, string aPassword, string aDatabaseName)
{
string pConnectionString;
pConnectionString = "SERVER=" + aServerName + ";" +
"DATABASE=" + aDatabaseName + ";" +
"UID=" + aUserName + ";" +
"PASSWORD=" + aPassword + ";";
this.FMySQLConnection = new MySqlConnection(pConnectionString);
}

public void TDBQuery(string aQuery)
{
MySqlCommand pMySQLCommand;

pMySQLCommand = this.FMySQLConnection.CreateCommand();

//try
//{
pMySQLCommand.CommandText = aQuery;
this.FMySQLConnection.Open();
this.FMySQLDataReader = pMySQLCommand.ExecuteReader();

//this.FMySQLConnection.Close();
//}
//catch (Exception pException)
//{
// if (pException.ToString() == "") { }
//}
//finally
//{

//}

}

public MySqlDataReader DBGetRow()
{
return this.FMySQLDataReader;
}

}

}

W aplikacji używam tej klasy:
this.FMySQLConnection = new RSMySQLAPI.TMySQLConnection("serwer", "użytkownik", "haslo", "db_name");
string pLoginQuery = "SELECT COUNT(*) FROM user WHERE user_login = '" +
"rs" + "' AND user_password = MD5('" + "123" + "')";

this.FMySQLConnection.TDBQuery(pLoginQuery);
this.FMySQLConnection.FMySQLDataReader.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Nie widze zadnych metod mojego data readera. Nie wiem czemu w miejscu xxxxx nie widzę takich metod jak Read()... nawet jeżeli FMySQLDataReader jest publiczny lub jeżeli próbuję zwrócić go przez metodę DBGetRow, która też jest publiczna.
Chcę dodać też że w ciele klasy TMySQLConnection reader widzi metodę read().

O co chodzi???
Dzięki i pozdro
Rafał