473,484 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

will this Design work?

hi...

i have a design as follows...

Presentation Layer (.aspx, .cs) -- Service Layer (just a facade) --
Business Layer (business objects) -- Data Layer (all DB related things
for business objects are done here) -- Data Access Application Blocks
-- DataBase

No we pass objects and not datasets across layers ..

Typically the flow is ...

_ Click --> ...-->.. the business objects are populated using
DataReader.. the collection of Business Objects are returned (collection
is a strongly typed collection for the business objects ) ...at the
presentation layer (service facade),the business objects are converted
to VIEW Objects ( views are typically a wrapper over the business
objects which expsose some properties of business objects for view
purpose--typically to bind data) ... the view objects are put into a
viewCollection (again a strongly typed colletion) and then BOUND TO THE
DATAGRID etc...

NOW CAN YOU PLEASE TELL ME IF THERE is any flaw or disadvantage here
other than the extra code we need to write and unavailability of rich
features of dataset ???

can you forsee any problem with such a design..

it actually helps me to use Object oriented design concepts and
patterns...
Please give ur comments...

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
2 1185
Shan,

Well, the biggest issue is the fact you have to write all of this. I'm
not saying that data sets are better or worse for what you want to do, but
the immediate drawback is that you will have to write code for all of the
functionality that you lose with DataSets.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"shan chennai" <co*******@rediffmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
hi...

i have a design as follows...

Presentation Layer (.aspx, .cs) -- Service Layer (just a facade) --
Business Layer (business objects) -- Data Layer (all DB related things
for business objects are done here) -- Data Access Application Blocks
-- DataBase

No we pass objects and not datasets across layers ..

Typically the flow is ...

_ Click --> ...-->.. the business objects are populated using
DataReader.. the collection of Business Objects are returned (collection
is a strongly typed collection for the business objects ) ...at the
presentation layer (service facade),the business objects are converted
to VIEW Objects ( views are typically a wrapper over the business
objects which expsose some properties of business objects for view
purpose--typically to bind data) ... the view objects are put into a
viewCollection (again a strongly typed colletion) and then BOUND TO THE
DATAGRID etc...

NOW CAN YOU PLEASE TELL ME IF THERE is any flaw or disadvantage here
other than the extra code we need to write and unavailability of rich
features of dataset ???

can you forsee any problem with such a design..

it actually helps me to use Object oriented design concepts and
patterns...
Please give ur comments...

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2
The following frameworks may be of help to you:

http://www.lhotka.net/
http://cstemplates.sourceforge.net/

hth

Nov 17 '05 #3

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

Similar topics

4
4410
by: Nomen Nescio | last post by:
can anyone be so kind as to look at http://www.mysolution.ws/HYPOCRITE.php and let me know why it isn't passing the form data to http://www.mysolution.ws/insertHYPOCRITES.php for the most...
90
3910
by: Mark Hahn | last post by:
"Michael Geary" <Mike@Geary.com> wrote ... >Does anyone have some sample code where obj$func() would be used? > (Apologies if I missed it.) There have been so many messages about delegation...
23
2451
by: Antoon Pardon | last post by:
I have had a look at the signal module and the example and came to the conclusion that the example wont work if you try to do this in a thread. So is there a chance similar code will work in a...
7
1371
by: John | last post by:
Hi: I want all objects of a class share the same set of data, which will be input from a file when the code start to run. In my design, I use static data member. The definition of the class is...
33
3196
by: DFS | last post by:
An application I wrote has been deployed on Citrix, and the Citrix admin tells me all users run the same .mde file. There aren't a lot of concurrent users, but even 2 could be cause for concern. ...
3
4109
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
4
1740
by: anton.hopen | last post by:
ASP.NET 2.0 master pages are great. However, I want to edit an ASPX page in FrontPage for aesthetic styling reasons. The ASPX page is linked to a master page so it naturally has a...
3
1690
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the...
17
4822
by: roN | last post by:
Hi, I'm creating a Website with divs and i do have some troubles, to make it looking the same way in Firefox and IE (tested with IE7). I checked it with the e3c validator and it says: " This...
9
2803
by: Grizlyk | last post by:
Somebody have offered std colors to C++ in the msg here: http://groups.google.com/group/comp.lang.c++/browse_frm/thread/2e5bb3d36ece543b/1acf6cd7e3ebdbcd#1acf6cd7e3ebdbcd The main objection to...
0
7079
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
6949
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
7194
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5403
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4838
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3044
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1355
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
587
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
234
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.