Пример #1
0
        public wDBRowCollection GetRows()
        {
            dbc.ReturnToRoot();
            string[]           rowNums = dbc.ListDatabases();
            List <wDBTableRow> rows    = new List <wDBTableRow>();

            for (int i = 0; i < rowNums.Length; i++)
            {
                string rowNum = rowNums[i];
                dbc.SelectDB(rowNum);
                rows.Add(
                    new wDBTableRow(dbc)
                    );
                dbc.ReturnToRoot();
            }
            return(new wDBRowCollection(rows));
        }
Пример #2
0
 public wDBTable(string name, DatabaseClient root)
 {
     rootLocation = root.currentFolderLocation;
     dbc = root.Clone();
     dbc.SelectDB("$" + name);
     dbc.SetCurrentDBAsRoot();
     dbc.ReturnToRoot();
 }
Пример #3
0
 public wDBTable(string name, DatabaseClient root)
 {
     rootLocation = root.currentFolderLocation;
     dbc          = root.Clone();
     dbc.SelectDB("$" + name);
     dbc.SetCurrentDBAsRoot();
     dbc.ReturnToRoot();
 }