コード例 #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;
        }
コード例 #2
0
ファイル: FullName.cs プロジェクト: meCtd/DBManager
        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;
            }
        }