Exemplo n.º 1
0
        private bool TestConnection(RdbmsDto rdbms)
        {
            var connectionOpt = new ConnectionOptions
            {
                DataSource     = rdbms.Server,
                InitialCatalog = rdbms.Catalog,
                UserId         = rdbms.UserId,
                Password       = rdbms.Password,
                ReadOnly       = rdbms.ReadOnly
            };

            var connTest = StorageManager.ConnectionTest(connectionOpt, rdbms.Provider);

            return(connTest.Test());
        }