Click here to Skip to main content
15,909,242 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
Generaluml diagrams Pin
M.Bhargavi5-Feb-08 5:50
M.Bhargavi5-Feb-08 5:50 
GeneralRe: uml diagrams Pin
Ray Cassick5-Feb-08 6:53
Ray Cassick5-Feb-08 6:53 
GeneralRe: uml diagrams Pin
Maximilien5-Feb-08 6:54
Maximilien5-Feb-08 6:54 
GeneralRe: uml diagrams Pin
M.Bhargavi5-Feb-08 17:59
M.Bhargavi5-Feb-08 17:59 
QuestionRe: uml diagrams Pin
Maximilien6-Feb-08 1:11
Maximilien6-Feb-08 1:11 
GeneralRe: uml diagrams Pin
pmarfleet6-Feb-08 2:02
pmarfleet6-Feb-08 2:02 
GeneralRe: uml diagrams Pin
Pete O'Hanlon10-Feb-08 10:49
mvePete O'Hanlon10-Feb-08 10:49 
GeneralRe: uml diagrams Pin
Mark Churchill10-Feb-08 11:10
Mark Churchill10-Feb-08 11:10 
GeneralRe: uml diagrams Pin
Pete O'Hanlon10-Feb-08 22:00
mvePete O'Hanlon10-Feb-08 22:00 
GeneralRe: uml diagrams Pin
Ray Cassick10-Feb-08 8:26
Ray Cassick10-Feb-08 8:26 
QuestionCaptures screen updates from desktop screen Pin
Ravi0034-Feb-08 19:30
Ravi0034-Feb-08 19:30 
QuestionUsing Team Foundation in Multiple Environments? Pin
Jasmine250131-Jan-08 11:46
Jasmine250131-Jan-08 11:46 
AnswerRe: Using Team Foundation in Multiple Environments? Pin
Mark Churchill1-Feb-08 2:56
Mark Churchill1-Feb-08 2:56 
GeneralRe: Using Team Foundation in Multiple Environments? Pin
Jasmine25011-Feb-08 5:29
Jasmine25011-Feb-08 5:29 
AnswerRe: Using Team Foundation in Multiple Environments? Pin
led mike1-Feb-08 4:45
led mike1-Feb-08 4:45 
QuestionAn MVP Variant? Pin
Philip Laureano31-Jan-08 6:15
Philip Laureano31-Jan-08 6:15 
AnswerRe: An MVP Variant? Pin
Jasmine250131-Jan-08 10:48
Jasmine250131-Jan-08 10:48 
GeneralRe: An MVP Variant? Pin
Philip Laureano31-Jan-08 11:22
Philip Laureano31-Jan-08 11:22 
GeneralRe: An MVP Variant? Pin
Jasmine250131-Jan-08 11:56
Jasmine250131-Jan-08 11:56 
AnswerRe: An MVP Variant? Pin
Pete O'Hanlon1-Feb-08 3:40
mvePete O'Hanlon1-Feb-08 3:40 
GeneralHelp! NHibernate data saving problem. Pin
Harry Sun29-Jan-08 22:58
Harry Sun29-Jan-08 22:58 
GeneralRe: Help! NHibernate data saving problem. Pin
Mark Churchill30-Jan-08 2:05
Mark Churchill30-Jan-08 2:05 
GeneralRe: Help! NHibernate data saving problem. Pin
Harry Sun30-Jan-08 16:59
Harry Sun30-Jan-08 16:59 
Generalshape locations Pin
netJP12L29-Jan-08 6:50
netJP12L29-Jan-08 6:50 
GeneralUnrelated data layer question. Pin
MatthewSmith27-Jan-08 9:35
MatthewSmith27-Jan-08 9:35 
Hi,

I'm working on my second project at the moment that makes use of a 3-layer model. On my first project I had circular dependencies so that the data layer could hydrate and return a business object and take one as a parameter to save it back to the database. This worked fairly well although it was rather complicated.

This time round I'm creating the data layer so that it takes individual values of a business object - strings, integers, etc - in order to save the objects, and it similarly returns the individual values through reference parameters to allow the business layer to hydrate objects.

The second method seems to be making everything a lot simpler, however I've run into a little problem. With the first method when I wanted to get a collection of business objects the data layer would just create a collection and add each object into that before returning it. With the less coupled second method I cannot do this and must rely on the business layer to create a collection based on the values returned by the database. The problem I'm facing is that, without creating extra classes in the data layer just to store records from the database, I can't see a way of getting the data back to the business layer.

I've read as much material on data layers as I can find, but none of it seems to cover this sort of thing. Has anyone got any ideas how to overcome this without creating extra classes which mimic those in the business layer?


Regards,
Matt

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.