Click here to Skip to main content
15,906,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 25-Feb-13 0:45am
v2
Comments
Asim Mahmood 25-Feb-13 2:58am    
please clarify your question.
Raja Soosai 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
bbirajdar 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

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#[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900