public void AddChild(DbObject obj) { var items = _childrenMap.ContainsKey(obj.Type) ? _childrenMap[obj.Type] : (_childrenMap[obj.Type] = new List <DbObject>()); items.Add(obj); obj.Parent = this; }
public FullName(DbObject obj) { _items = new List <Chunk>(); var current = obj; while (current != null) { _items.Insert(0, new Chunk(current.Name, current.Type)); current = current.Parent; } }