Click here to Skip to main content
15,894,180 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Chat Feature Pin
Richard MacCutchan8-Mar-11 23:28
mveRichard MacCutchan8-Mar-11 23:28 
QuestionGRASP: Controller architecture, correct and wrong. Pin
grmihel28-Mar-11 3:42
grmihel28-Mar-11 3:42 
AnswerRe: GRASP: Controller architecture, correct and wrong. Pin
Piccadilly Yum Yum8-Mar-11 5:25
Piccadilly Yum Yum8-Mar-11 5:25 
GeneralRe: GRASP: Controller architecture, correct and wrong. Pin
grmihel28-Mar-11 22:12
grmihel28-Mar-11 22:12 
GeneralRe: GRASP: Controller architecture, correct and wrong. Pin
Piccadilly Yum Yum8-Mar-11 22:57
Piccadilly Yum Yum8-Mar-11 22:57 
QuestionDatabase alerts [modified] Pin
gbovee7-Mar-11 11:25
gbovee7-Mar-11 11:25 
AnswerRe: Database alerts Pin
Eddy Vluggen8-Mar-11 2:05
professionalEddy Vluggen8-Mar-11 2:05 
QuestionI dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? [modified] Pin
Nadia Monalisa27-Feb-11 14:59
Nadia Monalisa27-Feb-11 14:59 
Hi,

I know, a well designed architecture should not allow a presentation layer to talk to Data Access Layer. Rather Presentation layer should talk to Business Logic Layer and Business Logic Layer should talk to Data access layer.

In my Data access layer, I have method

/// <summary>
/// Gets the employee.
/// </summary>
/// <param name="emailAddress">The email address.</param>
/// <returns></returns>
public static employee GetEmployee(string emailAddress)
{
    using (EmployeeDBDataContext myDbContext = new EmployeeDBDataContext())
    {
        employee empRecord = myDbContext.employees.Where(aRec => aRec.emailAddress == emailAddress).ToArray().SingleOrDefault();
        return empRecord;
    }
}


My Presentation Layer's job is to display the properties of the employee object directly to the UI, where I do not even need to write any code for that.

Ok, now, should I create a thin Business Logic layer just to mediate the call of Presentation layer ? Then, it may look very messy as I will have to create a set of methods in BLL duplicating the method signature from DAL. Would you please tell me what could be a better practice ?

modified on Monday, February 28, 2011 5:12 AM

AnswerRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Pete O'Hanlon27-Feb-11 20:40
mvePete O'Hanlon27-Feb-11 20:40 
GeneralRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Nadia Monalisa27-Feb-11 21:24
Nadia Monalisa27-Feb-11 21:24 
GeneralRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Pete O'Hanlon27-Feb-11 22:21
mvePete O'Hanlon27-Feb-11 22:21 
GeneralRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Nadia Monalisa27-Feb-11 23:15
Nadia Monalisa27-Feb-11 23:15 
AnswerRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Eddy Vluggen27-Feb-11 22:14
professionalEddy Vluggen27-Feb-11 22:14 
GeneralRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Nadia Monalisa27-Feb-11 23:10
Nadia Monalisa27-Feb-11 23:10 
AnswerRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
RobCroll27-Feb-11 23:40
RobCroll27-Feb-11 23:40 
GeneralRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Nadia Monalisa28-Feb-11 0:39
Nadia Monalisa28-Feb-11 0:39 
GeneralRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
RobCroll28-Feb-11 2:00
RobCroll28-Feb-11 2:00 
AnswerRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Sander Rossel11-Mar-11 3:49
professionalSander Rossel11-Mar-11 3:49 
GeneralRe: I dont find anything for my Business Logic Layer !! Is it wrong to let my Presentation Layer talking to Data Access Layer ? Pin
Nadia Monalisa11-Mar-11 4:21
Nadia Monalisa11-Mar-11 4:21 
QuestionDesign of WCF Pin
Mycroft Holmes27-Feb-11 13:49
professionalMycroft Holmes27-Feb-11 13:49 
AnswerRe: Design of WCF Pin
JV99992-Mar-11 2:57
professionalJV99992-Mar-11 2:57 
QuestionEstimate the cost of a Software application Pin
nz_hmz25-Feb-11 4:23
nz_hmz25-Feb-11 4:23 
AnswerRe: Estimate the cost of a Software application Pin
JV999925-Feb-11 4:43
professionalJV999925-Feb-11 4:43 
GeneralRe: Estimate the cost of a Software application Pin
nz_hmz25-Feb-11 5:46
nz_hmz25-Feb-11 5:46 
GeneralRe: Estimate the cost of a Software application Pin
Mycroft Holmes25-Feb-11 18:35
professionalMycroft Holmes25-Feb-11 18:35 

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.