473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Presentation layer has reference to data layer

Ily
Hi all

I am using Visual studio 2005.

Im my project I have a presentation layer, a business layer and a data
access layer. From my business layer i have a reference to my data
layer. I also have a refeence to my business layer from my presentation
layer.

Now the weird thing is, I can create a form, and I can add a using
statement to my data layer, instantiate an object and call a method on
it - why is this? I dont have any refernce to my data layer - so how
does this happen? In any case - I dont want this behaviour - it didint
work like this in Visual Studio 2003! This is obviouslay undesired
behavior - anyone know why or how?

Oct 13 '06 #1
2 1895
Maybe you need to remove the reference to your data access DLL from
your presentation project?

Ily wrote:
Hi all

I am using Visual studio 2005.

Im my project I have a presentation layer, a business layer and a data
access layer. From my business layer i have a reference to my data
layer. I also have a refeence to my business layer from my presentation
layer.

Now the weird thing is, I can create a form, and I can add a using
statement to my data layer, instantiate an object and call a method on
it - why is this? I dont have any refernce to my data layer - so how
does this happen? In any case - I dont want this behaviour - it didint
work like this in Visual Studio 2003! This is obviouslay undesired
behavior - anyone know why or how?
Oct 13 '06 #2
If you use Web Site project type, then all the references AND THEIR
REFERENCES are copied into /bin/ folder. And because WebSite does not have
any .csproj file, where the refereces would be explicitly listed, it
automatically references all assemblies in /bin folder.

You have to use Web Application Project if you want the old (IMHO better)
project style.

Robert Haken [MVP ASP/ASP.NET]
HAVIT, s.r.o., www.havit.cz
http://knowledge-base.havit.cz
"Ily" <il***@igsoftwaresolutions.co.ukpíse v diskusním príspevku
news:11**********************@b28g2000cwb.googlegr oups.com...
Hi all

I am using Visual studio 2005.

Im my project I have a presentation layer, a business layer and a data
access layer. From my business layer i have a reference to my data
layer. I also have a refeence to my business layer from my presentation
layer.

Now the weird thing is, I can create a form, and I can add a using
statement to my data layer, instantiate an object and call a method on
it - why is this? I dont have any refernce to my data layer - so how
does this happen? In any case - I dont want this behaviour - it didint
work like this in Visual Studio 2003! This is obviouslay undesired
behavior - anyone know why or how?

Oct 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Michael Rodriguez | last post by:
I have a windows form that makes a call to my BLL to get some data. The windows form has a progress bar component that I would like updated as the data retrieval takes place. However, strictly...
13
by: Michelle | last post by:
Hi all... I could use a little TLC here for understanding and not for solving a specific problem... sorry if I've got the wrong group, but I'm using VB so I figured this was the most appropriate...
5
by: Learner | last post by:
Hi there, I am just trying to set up 3 tier architecture. When i add my Datalayer project to the Business layer project the methods are exposed to in my business class. But in the similar way when...
1
by: rbg | last post by:
Hi, I am trying to understand the layering concept with the ASP.NET 2.0 apps. I have a ASP.NET 2.0 Web app which has 3 layers Presentation layer which contains UI elements and Input...
6
by: Dhananjay | last post by:
hello everyone i have got a problem i want to design business layer, data access layer , presentation layer for asp.net using C#.net , can anyone help me to solve this problem. i want some...
0
by: Exilemedia | last post by:
I'm currently trying to build my own web framework using ASP.NET, .NET 2.0 and C#. It's mostly going to contain commonly used web applications like code for a forum, a web store, blog, etc. I...
1
by: | last post by:
I'm querying Index Server to return search results, both regular properties and some custom properties I've created. Index Server has this preference for thinking about information as strings...
1
by: Clark Simpson | last post by:
Hi, Apologies if this is such a simple query but if I have an ASP/.NET Application which I normally access via www.foo.com/myapp on Machine A can I access this application layer machine via a...
0
by: johnlim20088 | last post by:
Can someone help me on this? I need a sample console application built in C# net with new practice -> separate in three layer architecture 1) Presentation layer 2) Business logic layer 3)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.