Click here to Skip to main content
15,886,110 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralWeb Service for DataBase call Pin
lokeshgupta1314-Mar-08 6:37
lokeshgupta1314-Mar-08 6:37 
GeneralRe: Web Service for DataBase call Pin
Mark Churchill16-Mar-08 1:15
Mark Churchill16-Mar-08 1:15 
GeneralRe: Web Service for DataBase call Pin
Rob Philpott17-Mar-08 2:36
Rob Philpott17-Mar-08 2:36 
GeneralASP.net 3.5 and SQL Server Reporting Pin
camby7512-Mar-08 9:27
camby7512-Mar-08 9:27 
GeneralRe: ASP.net 3.5 and SQL Server Reporting Pin
pmarfleet16-Mar-08 1:54
pmarfleet16-Mar-08 1:54 
GeneralIntegration services Pin
sprague29511-Mar-08 11:31
sprague29511-Mar-08 11:31 
GeneralRe: Integration services Pin
Pete O'Hanlon11-Mar-08 11:44
mvePete O'Hanlon11-Mar-08 11:44 
GeneralArchitecture 101.... Pin
daniel.byrne11-Mar-08 7:36
daniel.byrne11-Mar-08 7:36 
Hi everyone,

I am a software developer that is looking to improve the way I design my classes...

In my classes usually I have a constructor where an ID or some identifier is passed in, the constructor then goes off to the database and populates that objects member variables.
A 'save' of an object would find the relevant record in the database and overwrite it's data.

What's all this I've been hearing about a separate data access layer - how would you go about implementing one.

I have been thinking for a while that this is a bad design (should you get the data before
you create the instance of the class and pass this to the constructor?)
and if this is the case, wouldn't you just be moving the SQL into the UI or the calling method...

Does my way of doing this look as messy as I feel like it does; and is there any way around having to code each and every member variable into the class, and corresponding GET/SET methods? It feels like each class I design takes at least an hour each to hand code all the even generic getters and setters never mind the logic of the actual class itself and then is full of messy SQL Select and Update statements.

I guess I'm after a pointer to an 'architecture 101' type tutorial Smile | :)

Thanks in advance for any pointers/ideas.
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 7:42
led mike11-Mar-08 7:42 
GeneralRe: Architecture 101.... Pin
daniel.byrne11-Mar-08 7:48
daniel.byrne11-Mar-08 7:48 
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 7:58
led mike11-Mar-08 7:58 
GeneralRe: Architecture 101.... Pin
daniel.byrne11-Mar-08 8:06
daniel.byrne11-Mar-08 8:06 
GeneralRe: Architecture 101.... Pin
Scott Dorman11-Mar-08 8:20
professionalScott Dorman11-Mar-08 8:20 
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 8:56
led mike11-Mar-08 8:56 
RantRe: Architecture 101.... Pin
jtvberg11-Apr-08 10:11
jtvberg11-Apr-08 10:11 
GeneralRe: Architecture 101.... Pin
Pete O'Hanlon11-Mar-08 11:17
mvePete O'Hanlon11-Mar-08 11:17 
GeneralClass Design Help Pin
mark_w_4-Mar-08 22:27
mark_w_4-Mar-08 22:27 
GeneralRe: Class Design Help Pin
Steven Campbell5-Mar-08 10:31
Steven Campbell5-Mar-08 10:31 
GeneralRe: Class Design Help Pin
mark_w_5-Mar-08 22:36
mark_w_5-Mar-08 22:36 
QuestionGenral architecture question. Pin
joysnlove3-Mar-08 14:06
joysnlove3-Mar-08 14:06 
GeneralRe: Genral architecture question. [modified] Pin
mark_w_4-Mar-08 22:36
mark_w_4-Mar-08 22:36 
GeneralRe: Genral architecture question. Pin
Pete O'Hanlon5-Mar-08 1:04
mvePete O'Hanlon5-Mar-08 1:04 
GeneralManaging Application ImageLists Pin
Tristan Rhodes3-Mar-08 2:05
Tristan Rhodes3-Mar-08 2:05 
GeneralRe: Managing Application ImageLists Pin
Pete O'Hanlon3-Mar-08 3:44
mvePete O'Hanlon3-Mar-08 3:44 
GeneralRe: Managing Application ImageLists Pin
Tristan Rhodes3-Mar-08 4:25
Tristan Rhodes3-Mar-08 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.