Click here to Skip to main content
15,887,945 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
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
GeneralRe: Unrelated data layer question. Pin
led mike28-Jan-08 6:13
led mike28-Jan-08 6:13 
GeneralRe: Unrelated data layer question. Pin
MatthewSmith28-Jan-08 7:34
MatthewSmith28-Jan-08 7:34 
GeneralRe: Unrelated data layer question. Pin
led mike28-Jan-08 8:34
led mike28-Jan-08 8:34 
GeneralRe: Unrelated data layer question. Pin
Mark Churchill28-Jan-08 20:11
Mark Churchill28-Jan-08 20:11 
GeneralRe: Unrelated data layer question. Pin
dojohansen11-Feb-08 8:10
dojohansen11-Feb-08 8:10 
GeneralRe: Unrelated data layer question. Pin
dojohansen11-Feb-08 8:04
dojohansen11-Feb-08 8:04 
GeneralDAL Design Question Pin
Waleed Eissa24-Jan-08 2:42
Waleed Eissa24-Jan-08 2:42 
GeneralRe: DAL Design Question Pin
Mark Churchill25-Jan-08 4:24
Mark Churchill25-Jan-08 4:24 
GeneralRe: DAL Design Question Pin
led mike25-Jan-08 4:40
led mike25-Jan-08 4:40 
GeneralRe: DAL Design Question Pin
Mark Churchill25-Jan-08 4:55
Mark Churchill25-Jan-08 4:55 
GeneralRe: DAL Design Question Pin
Waleed Eissa27-Jan-08 3:16
Waleed Eissa27-Jan-08 3:16 
GeneralRe: DAL Design Question Pin
Mark Churchill27-Jan-08 5:19
Mark Churchill27-Jan-08 5:19 
GeneralRe: DAL Design Question Pin
Waleed Eissa1-Feb-08 18:58
Waleed Eissa1-Feb-08 18:58 
GeneralRe: DAL Design Question Pin
Ashfield30-Jan-08 4:24
Ashfield30-Jan-08 4:24 
QuestionBeta Testing? Develop Tech? Pin
Chrispie12323-Jan-08 19:00
Chrispie12323-Jan-08 19:00 
AnswerRe: Beta Testing? Develop Tech? Pin
Paul Conrad25-Jan-08 15:56
professionalPaul Conrad25-Jan-08 15:56 
GeneralVisual Studio 2005 collaboration Pin
Mike Nelson22-Jan-08 1:47
Mike Nelson22-Jan-08 1:47 

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.