Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Hi all,
 
I have a doubt regarding adding references to website.
What type of problems I may face if add 'DataAccess' reference to 'web site'.
 
As per my knowledge it is mandatory to give business facade and common class references to website.
Posted 24-Feb-13 19:49pm
Edited 25-Feb-13 1:45am
v2
Comments
Asim Mahmood at 25-Feb-13 2:58am
   
please clarify your question.
Raja Soosai at 25-Feb-13 5:04am
   
You are asking about Layering or some other question. Keeping a intermediate layer is always best, between DataAccess and Website
aspnet_regiis -i at 25-Feb-13 9:21am
   
You may get error messages like - "Are you sure to add the reference ? If not then why did you waste your time in writing the DataAccess logic..." ;)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

What type of problems I may face if add 'DataAccess' reference to 'web site'.
Well, as per feature working, no problem. By adding a DataAccess reference, you are removing business layer segregating the UI & DA layers. Thus, converting your application architecture into 2-Tier application.
 
It is NOT mandatory to have a BL between UI & DA. One of the general good architecture used is 3-Tier where BL keeps UI & DA separate and acts as mediator. There are benefits of this structure like easy maintenance and no coupling of DB with UI. Easy change of DB layer without affecting UI or vice-versa.
 
In case you want to know/read more on 3-tier architecture, please have a look at these:
3-tier architecture in C#[^]
3-Tier Architecture Examples[^]
3-Tier Architecture in ASP.NET with C#[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 205
1 Richard MacCutchan 185
2 DamithSL 170
3 Tomas Takac 146
4 OriginalGriff 132
0 OriginalGriff 5,130
1 DamithSL 4,237
2 Maciej Los 3,700
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,846


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100