示例#1
0
        private void LoadTables(CnnString cnn)
        {
            SqlConnection    sqlConnection    = new SqlConnection(cnn.ToString());
            ServerConnection serverConnection = new ServerConnection(sqlConnection);

            try
            {
                Server   wServer = new Server(serverConnection);
                Database db      = new Database(wServer, cnn.InitialCatalog);
                db.Views.Refresh();
                _Views = db.Views;
            }
            catch (Exception ex)
            {
                MessageBox.Show(HelperFunctions.GetAllMessageException(ex));
            }
        }
示例#2
0
        private void LoadTables(CnnString cnn)
        {
            SqlConnection sqlConnection = new SqlConnection(cnn.ToString());
            ServerConnection serverConnection = new ServerConnection(sqlConnection);

            try
            {
                Server wServer = new Server(serverConnection);
                Database db = new Database(wServer, cnn.InitialCatalog);
                db.Views.Refresh();
               _Views = db.Views;
            }
            catch (Exception ex)
            {
                MessageBox.Show(HelperFunctions.GetAllMessageException(ex));
            }
        }