예제 #1
0
 public override void Reset()
 {
     IP       = String.Empty;
     Port     = 3306;
     User     = String.Empty;
     Password = String.Empty;
     Database = String.Empty;
     DSN      = new MySQLDSN();
     Driver   = DefaultODBCVersion;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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();
 }
예제 #4
0
        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;
            }
        }
예제 #5
0
 public MySQLConnectionInfo(string ip, short port, string user, MySQLDSN dsn, ODBCVersion driver)
     : this(ip, port, user, dsn, driver, "")
 {
 }
예제 #6
0
 public MySQLConnectionInfo(string ip, short port, string user, MySQLDSN dsn)
     : this(ip, port, user, dsn, DefaultODBCVersion)
 {
 }