Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interaction between layers
Message
De
24/02/2007 11:12:26
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Interaction between layers
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01198550
Message ID:
01198550
Vues:
53
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
Fil
Voir

Click here to load this message in the networking platform