Exemple #1
0
        public IList<ITableNode> GetChildren()
        {
            var nodes = new List<ITableNode>();

            var list = new TableManager().GetPrimaryKeyValues(TableName, RefColumn, RefColumnValue);

            foreach (var dictionary in list)
            {
                foreach (var dictionaryEntry in dictionary)
                {
                    foreach (var record in dictionary[dictionaryEntry.Key])
                        nodes.Add(new TableNode(TableName, InformationSchema.Instance.GetPrimaryKey(TableName), record));
                }
            }

            return nodes;
        }
Exemple #2
0
 private TableNodeManager()
 {
     schema = InformationSchema.Instance;
     tableManager = new TableManager();
 }