Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Tree Structures

Tree Structures

Scheduled Pinned Locked Moved Article Writing
csharpdatabasesysadminalgorithmsdata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve Johnson
    wrote on last edited by
    #1

    I need to document a number of tree type structures and wish to use SQL as the data source and ideally a .NET ASP front end. Ideally I want to store all data in one structure and allow users to navigate through the different structures and jump between them at relevant nodes. The tree structures are a network infrrastructure with multiple routes between switches, the power distribution feeding all the switches and the building structure where the various physical items exist. I'm after some ideas on the data structure, I have a few different structures in mind but the all have downfalls or complexity. SteveJ

    I 1 Reply Last reply
    0
    • S Steve Johnson

      I need to document a number of tree type structures and wish to use SQL as the data source and ideally a .NET ASP front end. Ideally I want to store all data in one structure and allow users to navigate through the different structures and jump between them at relevant nodes. The tree structures are a network infrrastructure with multiple routes between switches, the power distribution feeding all the switches and the building structure where the various physical items exist. I'm after some ideas on the data structure, I have a few different structures in mind but the all have downfalls or complexity. SteveJ

      I Offline
      I Offline
      i BM
      wrote on last edited by
      #2

      In DB you can design tree as the following: NodesTable(NodeID,NodeName,NodeParrent) NodeTable.NodeParrent 1===M NodeTable.NodeID and in ASP.NET use an DataReader to read all records of the table one by one and add them to the Tree datastructure you've designed.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups