Architecture question

W

William Gower

I have the following situation.
a.. A web form called UserInfo
b.. A controller class called WebUIController
c.. A Business Objects class called MemberBO
d.. A Typed datasets class called MemberDS
e.. A data access layer class called MemberDALC
UserInfo calls a method LoadMember which is located in the controller class. The controller class creates the member business object and calls GetMember(). The member business object class creates a memberDS object and calls the retrieve method of the dalc object. The dalc object returns back a dataset to the business object. The business object returns the dataset back to the controller.

Now what? I have a form on the webform that displays the member information. Does the controller pass the dataset back to the web form and let the web form populate the fields or does the controller call the fields of the web form and pass the data over or ?
 
W

Wee Bubba

this is a very interesting queston and i
cannot wait to hear what the experts say.

i spent a lot of time reading on this subject and could never figure
this out. i tried to implement this kind of architecture myself at
first but i seemed to be passing page controls around and moving
object from layer to layer unnecessarily when i just wanted to do
something simple like populate a dataList.

i read an MSDN article saying this kind of architecture you are trying
to implement can also affect performance significantly on the web. in
the end i went for something simpler.

i went for this:
-web page
-codebehind page (containing event handlers and functions specific to
page)
-then i created a set of seperate classes to handle common stuff like
paging etc. one of these classes is called EasySQL which handles all
the dirty database connection stuff. you basically chuck it an SQL
and throws back a data object which is full of data. i guess this is
a form of DAL.

anyway this is a contentious issue. see this post of mine which kicked
off a massive flame war! :twisted:

http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=551952
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top