コード例 #1
0
        private HierarchicalStructureNode getBuildingBlockNode(BuildingBlockDTO dto)
        {
            var buildingBlockNode = _spatialStructureNodeMapper.MapFrom(dto);

            foreach (var dtoBuilder in dto.Builder)
            {
                buildingBlockNode.AddChild(_spatialStructureNodeMapper.MapFrom(dtoBuilder));
            }
            return(buildingBlockNode);
        }
コード例 #2
0
        private ITreeNode getBuildingBlockNode(BuildingBlockDTO dto)
        {
            var buildingBlockNode = _nodeMapper.MapFrom(dto);

            foreach (var dtoBuilder in dto.Builder)
            {
                buildingBlockNode.AddChild(_nodeMapper.MapFrom(dtoBuilder));
            }
            return(buildingBlockNode);
        }