Ejemplo n.º 1
0
        private void Setup()
        {
            if (RemoteTableAccessCredentials != null)
            {
                _remoteUsername = RemoteTableAccessCredentials.Username;
                _remotePassword = RemoteTableAccessCredentials.GetDecryptedPassword();
            }

            _remoteDatabase = new DiscoveredServer(RemoteServer, RemoteDatabaseName, DatabaseType, _remoteUsername, _remotePassword).GetCurrentDatabase();

            _setupDone = true;
        }
Ejemplo n.º 2
0
        private void Setup()
        {
            if (RemoteServerReference != null)
            {
                _remoteDatabase = RemoteServerReference.Discover(DataAccessContext.DataLoad);
            }
            else
            {
                string remoteUsername = null;
                string remotePassword = null;

                if(RemoteTableAccessCredentials != null)
                {
                    remoteUsername = RemoteTableAccessCredentials.Username;
                    remotePassword = RemoteTableAccessCredentials.GetDecryptedPassword();
                }
            
                _remoteDatabase = new DiscoveredServer(RemoteServer, RemoteDatabaseName,DatabaseType, remoteUsername, remotePassword).GetCurrentDatabase();
            }
        }