G
Guest
Hey all,
I have a few questions regarding .NET BLL design. I am a somewhat
self-taught developer with limited resources, so I know there are some
concepts here and there that I might have missed along the way. To understand
my question, it might be best for me to explain my situation...I'll try to
keep it short.
Currently, I explicitly define classes for each object I have created, and
mirror this design in the database. For example, If I want to create a
note-taking program, I build a class for a NoteItem with all the properties
and methods for that Note, along with a NoteCollection class that inherits
ArrayList to collect the NoteItems, sort, etc. I would (obviously) have
tables in the database (SQL Server) that hold information about the NoteItems.
Now, my questions.
1. I have yet to find anyone that can validate this structure. Explicitly
defining classes to match the database design seems to clarify the
application architecture. The only problem I have with this design is the
amount of code repetition, due to the similarity of each object's design. Is
this a logical approach?
2. It seems as though I could dynamically create a similar environment with
a DataSet. However, the structure is more implied than explicit, so it is
kind of hard to keep track of the process of using each object. Is this a
better alternative to my design, or is there any other design alternatives I
have not explored?
3. If my design is acceptable, does anyone know if there is a specific name
for this type of design (beyond "object oriented")? I feel kind of dumb not
being able to just reference a term to describe my techniques.
Sorry to talk everyone's ears off. Thanks for reading through all of this.
Any help would be greatly appreciated.
I have a few questions regarding .NET BLL design. I am a somewhat
self-taught developer with limited resources, so I know there are some
concepts here and there that I might have missed along the way. To understand
my question, it might be best for me to explain my situation...I'll try to
keep it short.

Currently, I explicitly define classes for each object I have created, and
mirror this design in the database. For example, If I want to create a
note-taking program, I build a class for a NoteItem with all the properties
and methods for that Note, along with a NoteCollection class that inherits
ArrayList to collect the NoteItems, sort, etc. I would (obviously) have
tables in the database (SQL Server) that hold information about the NoteItems.
Now, my questions.
1. I have yet to find anyone that can validate this structure. Explicitly
defining classes to match the database design seems to clarify the
application architecture. The only problem I have with this design is the
amount of code repetition, due to the similarity of each object's design. Is
this a logical approach?
2. It seems as though I could dynamically create a similar environment with
a DataSet. However, the structure is more implied than explicit, so it is
kind of hard to keep track of the process of using each object. Is this a
better alternative to my design, or is there any other design alternatives I
have not explored?
3. If my design is acceptable, does anyone know if there is a specific name
for this type of design (beyond "object oriented")? I feel kind of dumb not
being able to just reference a term to describe my techniques.
Sorry to talk everyone's ears off. Thanks for reading through all of this.
Any help would be greatly appreciated.