Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
            }
        }