Information générale
Titre:
Interaction between layers
Versions des environnements
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement