473,385 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using C# with a Hierarchy

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

Nov 17 '05 #1
4 2288
back to basics ---- worked with Linked list

-----------------------------------------------------------------------
Regards ,
C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
http://www.geocities.com/dotnetinterviews/
-------------------------------------------------------------------------

Nov 17 '05 #2
My advice would be to do a lot of reading about typed DataSets and the
DataSet.Relations Property.

Regards,

Peter

"gr****@baxleys.org" wrote:
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

Nov 17 '05 #3
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>
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


---
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
Nov 17 '05 #4
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

Michael Nemtsev wrote:
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>
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


---
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


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Yaro | last post by:
Hi All (UDB 8.1 FP8, Win) In my simple test database, I have two tables CREATE TABLE "DB2ADMIN"."AAA" ( "F1" INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY, "F2" VARCHAR(10), PRIMARY KEY...
4
by: Dave Veeneman | last post by:
I have an object hierarchy that's several layers deep, and I'm puzzling over how to access an object at any point in the hierarchy, solely by its key. The hierarchy is similar to an...
1
by: Irfan Akram | last post by:
Hello People, I would appreciate your responses on this. I am writing an asp.net web-application involving C#. I am actually building a test hierarchy at the moment, which involves producing...
3
by: Brian Gideon | last post by:
I stumbled across something odd today about the placement of the using keyword. Section 9.3.2 of the C# v1.1 specification did not answer my question. My confusion is isolated to what happens in...
7
by: Jim Bancroft | last post by:
Hi everyone, A basic one here, I think. I haven't found the pattern yet, but sometimes when I cast a variable to another type using the "C" style cast operator the compiler refuses to play...
2
by: Do | last post by:
Hi, I have a database table with the following fields: id, name, parentid. These fields are supposed to create a hierarchy for a list box, an infinite hierarchy Child fields of parent fields...
8
by: ignatova | last post by:
Hello, I have been using IBM Net Search Extender to perform full text searches on text columns in relational tables in DB2 without any problems until now. However it doesn't seam to function...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
0
by: napolpie | last post by:
DISCUSSION IN USER nappie writes: Hello, I'm Peter and I'm new in python codying and I'm using parsying to extract data from one meteo Arpege file. This file is long file and it's composed by...
3
by: krzysztof.konopko | last post by:
Hello! I want to design a class hierarchy with one base abstract class, let's say CBase. I have a predicate that every object in the class hierarchy must have a parent object of type from this...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.