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; }
private TableNodeManager() { schema = InformationSchema.Instance; tableManager = new TableManager(); }