Exemple #1
0
        public static Dictionary <string, TableEntity.Table> AllTable()
        {
            Dictionary <string, TableEntity.Table> tablesDictionary = new Dictionary <string, TableEntity.Table>();

            System.Data.DataTable userDataTable = OracleDocument.GetAllUserTable();
            int i = 1;

            foreach (System.Data.DataRow dataRow in userDataTable.Rows)
            {
                TableEntity.Table userTable = GetTableEntityByDataRow(dataRow);
                tablesDictionary.Add(userTable.TableName, userTable);
                //if (++i > 20)
                //    break;
            }
            return(tablesDictionary);
        }