Using C# with a Hierarchy

  • Thread starter Thread starter groups
  • Start date Start date
G

groups

I'm very new to C# and Object Oriented languages in general. I'm
preparing to write a bookmarking application that needs to store
bookmarks and folders in a hierarchy. I'm thinking that I could create
bookmark and folder objects, the folders object having a collection of
other folder and bookmark objects. I think I can handle storing and
retrieving the hierarchy in my SQL Server, but I'm not sure what the
best way to handle them in the code is. Any suggestions.

I'll be using this solution in ASP.NET applications and we could
probably expect upwards of 1000 bookmarks and folders.

Thanks for any suggested solutions or resources.
Nate Baxley
 
My advice would be to do a lot of reading about typed DataSets and the
DataSet.Relations Property.

Regards,

Peter
 
Hello Peter,

Futhermore, I suggest to use XmlDataDocument to present data as hiearchy
of node objects


P> My advice would be to do a lot of reading about typed DataSets and
P> the DataSet.Relations Property.
P>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Thanks for the suggestions. I'll definetly be reading up. I guess my
biggest hesitation is that it seems like a lot of work to create all of
those relations in memory just to render the page and then throw them
away after the page is built. I'm guessing that you dont' want to
store all of this in the server memory. Will the DataSets support
Hierarchical relationships similar to Oracle, or am I stuck with
techniques like SQL Server?

Thanks again,
Nate Baxley
 
Back
Top