public override void Reset() { IP = String.Empty; Port = 3306; User = String.Empty; Password = String.Empty; Database = String.Empty; DSN = new MySQLDSN(); Driver = DefaultODBCVersion; }
public MySQLConnectionInfo(string ip, short port, string user, MySQLDSN dsn, ODBCVersion driver, string dbName) { IP = ip; Port = port; User = user; Password = String.Empty; Database = dbName; DSN = dsn; Driver = driver; }
public MySQLConnectionInfo(string ip, short port, string user, string pass, ODBCVersion driver, string dbName) { IP = ip; Port = port; User = user; Password = pass; Database = dbName; Driver = driver; DSN = new MySQLDSN(); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); var version = reader.GetVersion(); switch (version) { case 0: { IP = reader.ReadString(); Port = reader.ReadShort(); User = reader.ReadString(); Password = reader.ReadString(); Database = reader.ReadString(); Driver = reader.ReadFlag <ODBCVersion>(); DSN = new MySQLDSN(reader); } break; } }
public MySQLConnectionInfo(string ip, short port, string user, MySQLDSN dsn, ODBCVersion driver) : this(ip, port, user, dsn, driver, "") { }
public MySQLConnectionInfo(string ip, short port, string user, MySQLDSN dsn) : this(ip, port, user, dsn, DefaultODBCVersion) { }