Click here to Skip to main content
15,891,136 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
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 
My collegues and me just had the same discussion this week.
Why do all the extra work if you could simply directly get your data from the DAL?
Well, I think that this is because sooner or later your client is going to call and they want some new functionality or improvements.
So now you have one form where your employee is called, but in a few months you will have two forms.
If you seperate your DAL from your UI you then could simply re-use that same BLL you used earlier. If you did not seperate your UI from your DAL then you will find that:
A. you need to type some code containing logic (either the LINQ query or validation logic) twice.
Or B. you'll have to make a BLL after all to not resort to solution A.

Solution A is definately not good practice and if you find your clients demands rising you will type more code multiple times.
Even worse, if the client wants the logic you now build into different forms to be slightly different, you are going to have to edit all forms that use this logic, and this is easily forgotten if your application is getting larger.
But you do not want B either, because it will cost you a lot of time (first decoupling DAL from UI and then build the extra layer).

So building that extra BLL might look like a lot of work now, but it could save you a lot of work in the future.
Hope this helped. Good luck with it Thumbs Up | :thumbsup:
It's an OO world.

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 
AnswerRe: Estimate the cost of a Software application Pin
Eddy Vluggen25-Feb-11 23:10
professionalEddy Vluggen25-Feb-11 23:10 
AnswerRe: Estimate the cost of a Software application Pin
RobCroll27-Feb-11 0:07
RobCroll27-Feb-11 0:07 
GeneralRe: Estimate the cost of a Software application Pin
grmihel28-Mar-11 22:27
grmihel28-Mar-11 22:27 
AnswerRe: Estimate the cost of a Software application Pin
Piccadilly Yum Yum3-Mar-11 2:24
Piccadilly Yum Yum3-Mar-11 2:24 
QuestionUnified System Security Design - Database / Code / Both! Pin
Jammer13-Feb-11 7:51
Jammer13-Feb-11 7:51 
AnswerRe: Unified System Security Design - Database / Code / Both! Pin
Manfred Rudolf Bihy13-Feb-11 10:37
professionalManfred Rudolf Bihy13-Feb-11 10:37 
GeneralRe: Unified System Security Design - Database / Code / Both! Pin
Jammer15-Feb-11 4:04
Jammer15-Feb-11 4:04 
QuestionIs MSMQ old school Pin
RobCroll1-Feb-11 0:08
RobCroll1-Feb-11 0:08 
AnswerRe: Is MSMQ old school Pin
Pete O'Hanlon1-Feb-11 0:14
mvePete O'Hanlon1-Feb-11 0:14 
QuestionDatabase UI Design Pin
Leslie Sanford29-Jan-11 8:33
Leslie Sanford29-Jan-11 8:33 

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.