General information
Title:
Interaction between layers
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only