Presentation layer has reference to data layer

  • Thread starter Thread starter Ily
  • Start date Start date
I

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?
 
Maybe you need to remove the reference to your data access DLL from
your presentation project?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top