Ejemplo n.º 1
0
        private void PopulateConnectionString()
        {
            ConnectionString = "";

            switch (DbType)
            {
            case DbTypes.MsSql:
                ConnectionString = MssqlHelper.ConnectionString(ServerIp, ServerPort, Username, Password, Instance, Database);
                break;

            case DbTypes.MySql:
                ConnectionString = MysqlHelper.ConnectionString(ServerIp, ServerPort, Username, Password, Database);
                break;

            case DbTypes.PgSql:
                ConnectionString = PgsqlHelper.ConnectionString(ServerIp, ServerPort, Username, Password, Database);
                break;
            }

            return;
        }
Ejemplo n.º 2
0
        private void PopulateConnectionString()
        {
            ConnectionString = "";

            switch (_DbType)
            {
            case DbTypes.MsSql:
                ConnectionString = MssqlHelper.ConnectionString(_ServerIp, _ServerPort, _Username, _Password, _Instance, _DatabaseName);
                break;

            case DbTypes.MySql:
                ConnectionString = MysqlHelper.ConnectionString(_ServerIp, _ServerPort, _Username, _Password, _DatabaseName);
                break;

            case DbTypes.PgSql:
                ConnectionString = PgsqlHelper.ConnectionString(_ServerIp, _ServerPort, _Username, _Password, _DatabaseName);
                break;
            }

            return;
        }