Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interaction between layers
Message
From
24/02/2007 11:12:26
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Interaction between layers
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01198550
Message ID:
01198550
Views:
52
Hi,



I am working in an application where it has the following layers:

1 - pages aspx -------- ( WebApplication project)
2 - business rules --- ( Class Library project)
3 - data base --------- ( SQL Server )

---

In the presentation layer (WebApplication) I have a responsible public object for making the connection with the data base and send instructions-SQL to the bank. I understand that the object that interacts with the data base must be public because of the transactions, that is, the connection with the bank cannot be destroyed and be reinstantiated between a classroom and another one, therefore it has that to be public.

It happens that, if I instantiate the connection with the bank in the WebApplication project, I do not obtain to referenciar it in the project Class Library.

For the theory, the session variable alone works inside of one same project.

How I can decide this?
Next
Reply
Map
View

Click here to load this message in the networking platform