Click here to Skip to main content
15,921,467 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionModelling an Interface table in an OO world. Pin
Ger Hayden15-Mar-12 4:03
Ger Hayden15-Mar-12 4:03 
AnswerRe: Modelling an Interface table in an OO world. Pin
Eddy Vluggen16-Mar-12 11:15
professionalEddy Vluggen16-Mar-12 11:15 
QuestionUsing decorator pattern Pin
Anele Ngqandu15-Mar-12 1:36
Anele Ngqandu15-Mar-12 1:36 
AnswerRe: Using decorator pattern Pin
Shameel16-Mar-12 8:22
professionalShameel16-Mar-12 8:22 
QuestionI wanna create Architecture using EDMX,WCF and Generics Pin
kapiltapa12-Mar-12 18:38
kapiltapa12-Mar-12 18:38 
AnswerRe: I wanna create Architecture using EDMX,WCF and Generics Pin
jschell13-Mar-12 10:29
jschell13-Mar-12 10:29 
AnswerRe: I wanna create Architecture using EDMX,WCF and Generics Pin
Luc Pattyn13-Mar-12 10:57
sitebuilderLuc Pattyn13-Mar-12 10:57 
QuestionWhat is the correct location to inject objects while using dependency injection? Pin
SSEAR6-Mar-12 16:11
SSEAR6-Mar-12 16:11 
In my recent project, I am trying to implement the dependency injection. This project implements with three tire architecture. One layer is to access database, second one is to manage business logic and last one is for the UI.

Suppose there is a class "Customer" in data layer which implements the "ICustomer" interface for necessary data operations related to the customer. In the business layer, there is another "Customer" class for implement the business logic for the customer entity. This class has an "ICustomer" type property to inject the customer data layer class.

Now my question is, from where I should inject this data objects to business objects? To do this, I have following solutions.

1. Construct the business object and inject the data object from UI layer. But I feel it is ugly because I have to access data layer from UI layer to do this.

2. Create something like factory pattern from business layer to extract business objects with injected data objects. So factory pattern is the correct design pattern for this? If so, how can I implement it? Is there any other method to do this?

Thanks,
Thomas
AnswerRe: What is the correct location to inject objects while using dependency injection? Pin
walterhevedeich6-Mar-12 19:08
professionalwalterhevedeich6-Mar-12 19:08 
GeneralRe: What is the correct location to inject objects while using dependency injection? Pin
SSEAR7-Mar-12 3:01
SSEAR7-Mar-12 3:01 
AnswerRe: What is the correct location to inject objects while using dependency injection? Pin
Mahmud Hasan10-Mar-12 11:01
Mahmud Hasan10-Mar-12 11:01 
AnswerRe: What is the correct location to inject objects while using dependency injection? Pin
RichardGrimmer11-Apr-12 5:49
RichardGrimmer11-Apr-12 5:49 
QuestionRefactor static methods for loose coupling. Pin
Praveen Raghuvanshi3-Mar-12 4:21
professionalPraveen Raghuvanshi3-Mar-12 4:21 
AnswerRe: Refactor static methods for loose coupling. Pin
Bernhard Hiller4-Mar-12 19:59
Bernhard Hiller4-Mar-12 19:59 
GeneralRe: Refactor static methods for loose coupling. Pin
Praveen Raghuvanshi8-Mar-12 8:07
professionalPraveen Raghuvanshi8-Mar-12 8:07 
AnswerRe: Refactor static methods for loose coupling. Pin
jschell5-Mar-12 8:44
jschell5-Mar-12 8:44 
GeneralRe: Refactor static methods for loose coupling. Pin
Praveen Raghuvanshi8-Mar-12 8:21
professionalPraveen Raghuvanshi8-Mar-12 8:21 
GeneralRe: Refactor static methods for loose coupling. Pin
jschell9-Mar-12 6:03
jschell9-Mar-12 6:03 
QuestionCross platform team structure Pin
Richard Brett27-Feb-12 12:21
Richard Brett27-Feb-12 12:21 
AnswerRe: Cross platform team structure Pin
OChristiaanse29-Feb-12 10:17
OChristiaanse29-Feb-12 10:17 
GeneralRe: Cross platform team structure Pin
Richard Brett29-Feb-12 16:26
Richard Brett29-Feb-12 16:26 
GeneralRe: Cross platform team structure Pin
OChristiaanse29-Feb-12 19:57
OChristiaanse29-Feb-12 19:57 
AnswerRe: Cross platform team structure Pin
RobCroll29-Feb-12 13:52
RobCroll29-Feb-12 13:52 
AnswerRe: Cross platform team structure Pin
jschell1-Mar-12 8:52
jschell1-Mar-12 8:52 
QuestionA project of compiler Pin
Dmitri Novikov27-Feb-12 11:40
Dmitri Novikov27-Feb-12 11:40 

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.