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

Design and Architecture

 
GeneralRe: Thinking about the Future Pin
John D. Sanders31-May-11 7:06
John D. Sanders31-May-11 7:06 
QuestionAbout Three -Tier and N-tier Architecture? Pin
maruthimaru29-Apr-11 22:58
maruthimaru29-Apr-11 22:58 
AnswerRe: About Three -Tier and N-tier Architecture? Pin
DaveAuld29-Apr-11 23:08
professionalDaveAuld29-Apr-11 23:08 
AnswerRe: About Three -Tier and N-tier Architecture? Pin
Sandeep Mewara30-Apr-11 0:22
mveSandeep Mewara30-Apr-11 0:22 
AnswerRe: About Three -Tier and N-tier Architecture? Pin
Legor5-May-11 3:35
Legor5-May-11 3:35 
QuestionMVC Implementation Question Pin
Roger Wright25-Apr-11 18:13
professionalRoger Wright25-Apr-11 18:13 
AnswerRe: MVC Implementation Question Pin
Legor5-May-11 3:29
Legor5-May-11 3:29 
QuestionPopulating Data Model Properties Pin
Kevin Marois25-Apr-11 5:36
professionalKevin Marois25-Apr-11 5:36 
I'm developing a WPF app using MVVM. I have created a Models project and a Data Layer project. They are two seperate projects because later on I'm going to move the data access into a WCF service. The Data Layer creates, populates, and returns model objects.

The question is, assume a one to many relationship such as an invoice header and invoice line items. The InvoiceHeaderModel has a list property of type InvoiceDetailModel. Where's the right place to populate this?

If you do it in the model, maybe with lazy loading, then you create a dependency between the Model project into the Data Layer project. The Data Layer project knows about the Model project, but not the other way around. And, if you lazy load the child properties, then you have code in the models.

The only other place I can see it would be to have a method in the DL, say GetInvoiceDetails(InvoiceHeaderModel Header) that gets the details for the invoice and populates the header model's details property.

What do you think?
Everything makes sense in someone's mind

AnswerRe: Populating Data Model Properties Pin
dan!sh 25-Apr-11 5:45
professional dan!sh 25-Apr-11 5:45 
GeneralRe: Populating Data Model Properties Pin
Kevin Marois25-Apr-11 6:00
professionalKevin Marois25-Apr-11 6:00 
GeneralRe: Populating Data Model Properties Pin
dan!sh 25-Apr-11 6:06
professional dan!sh 25-Apr-11 6:06 
GeneralRe: Populating Data Model Properties Pin
Soulus8325-Apr-11 10:33
Soulus8325-Apr-11 10:33 
AnswerRe: Populating Data Model Properties Pin
Mycroft Holmes25-Apr-11 12:59
professionalMycroft Holmes25-Apr-11 12:59 
QuestionProcess Review: User Registration with Confirmation. Pin
Brady Kelly18-Apr-11 7:35
Brady Kelly18-Apr-11 7:35 
QuestionI have develop a web based Accounting and Inventory Software. How I can Market it? Pin
Prasanta_Prince16-Apr-11 6:52
Prasanta_Prince16-Apr-11 6:52 
AnswerRe: I have develop a web based Accounting and Inventory Software. How I can Market it? Pin
LloydA11125-Apr-11 11:59
LloydA11125-Apr-11 11:59 
AnswerRe: I have develop a web based Accounting and Inventory Software. How I can Market it? Pin
Sandeep Mewara30-Apr-11 0:24
mveSandeep Mewara30-Apr-11 0:24 
QuestionGood book for design principles Pin
variantseeker14-Apr-11 3:38
variantseeker14-Apr-11 3:38 
AnswerRe: Good book for design principles Pin
Keld Ølykke15-Apr-11 8:19
Keld Ølykke15-Apr-11 8:19 
QuestionDRY Pin
Member 448708313-Apr-11 8:45
Member 448708313-Apr-11 8:45 
AnswerRe: DRY Pin
Pete O'Hanlon13-Apr-11 9:09
mvePete O'Hanlon13-Apr-11 9:09 
GeneralRe: DRY Pin
Member 448708313-Apr-11 9:34
Member 448708313-Apr-11 9:34 
GeneralRe: DRY Pin
Pete O'Hanlon13-Apr-11 9:51
mvePete O'Hanlon13-Apr-11 9:51 
AnswerRe: DRY Pin
Eddy Vluggen13-Apr-11 10:25
professionalEddy Vluggen13-Apr-11 10:25 
GeneralRe: DRY Pin
Pete O'Hanlon13-Apr-11 10:30
mvePete O'Hanlon13-Apr-11 10:30 

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.