473,549 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ 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 1194
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.co m

"shan chennai" <co*******@redi ffmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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
4426
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 part, the scripts were created with http://phpcodegenie.sourceforge.net/
90
3922
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 and binding since Greg originally posted his meowing cat message that it's hard to remember what the original problem was that Greg pointed out. At...
23
2459
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 thread? -- Antoon Pardon
7
1377
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 as below: class myclass{ public: static int data; //The shared data.
33
3219
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. I think the use of globals is worrisome in this case. Anybody have any experience with Access on Citrix? (Al Kallal already griped me out about...
3
4119
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. The User Experience, or how the user experiences the end product, is the key to acceptance. And that is where User Interface Design enters the...
4
1743
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 contentplaceholder ID. Right-click in VS2005 and open it in MS FrontPage. Source appears file. However, design view (the real reason I'm in FP anyway) will not...
3
1696
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 consequence that also each content page cannot be used in design mode. It is impossible to design hundrets of pages in source mode without design
17
4830
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 Page Is Valid XHTML 1.0 Transitional!" but it still wouldn't look the same. It is on http://www.dvdnowkiosks.com/new/theproduct.php scroll down and...
9
2810
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 the including "colors markup" is useless of the marks, the marks is unneccessary extra information. The most used way to make colored view of C++...
0
7446
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3498
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
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 we have to send another system
0
757
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.