Click here to Skip to main content
12,998,483 members (95,719 online)
Rate this:
Please Sign up or sign in to vote.
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 24-Feb-13 18:49pm
Updated 25-Feb-13 0:45am
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
aspnet_regiis -i 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
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#[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2017
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