public ConnectionHandler(enDatabaseType dbType)
 {
     DatabaseType = dbType;
     switch (dbType)
     {
         case enDatabaseType.MySql:
             mysqlConnector = new MySqlConnector(Server, Username, Password);
             break;
         case enDatabaseType.MSSql:
             mssqlConnector = new MSSqlConnector(Server, Username, Password);
             break;
         case enDatabaseType.FireBird:
             firebirdConnector = new FireBirdConnector(Server, Username, Password);
             break;
     }
 }
示例#2
0
        public ConnectionHandler(enDatabaseType dbType)
        {
            DatabaseType = dbType;
            switch (dbType)
            {
            case enDatabaseType.MySql:
                mysqlConnector = new MySqlConnector(Server, Username, Password);
                break;

            case enDatabaseType.MSSql:
                mssqlConnector = new MSSqlConnector(Server, Username, Password);
                break;

            case enDatabaseType.FireBird:
                firebirdConnector = new FireBirdConnector(Server, Username, Password);
                break;
            }
        }