Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Control or not to Control... that is the question!!!
Message
From
23/09/2005 20:24:06
 
General information
Forum:
ASP.NET
Category:
Object Oriented Programming
Environment versions
Environment:
C# 1.1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01052626
Message ID:
01052634
Views:
9
Victor,

Since you're talking about CRUD operations and calling Stored Procs, I'm assuming you're talking about DataAccess classes when you speak of a controller object. Personally, I believe it makes sense to organize these objects functionally, so in the examples you mention Order and Order Detail ... yes, these should both be handled by one "controller object".

We take this one step further and have separate Biz objects and DataAccess objects. This way the Biz objects know nothing about the back-end data store, they just know to call a DataAccess class which takes care of getting/saving the data from/to the database.

We pass Typed DataSets back-and-forth between layers.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform