Application and AppDataContract Classes
The Application class is a application business object whose encrypted database connection string properties are set in the global.asax file on application startup. The client page domain BLL has the ability to utilize this application object to access the SQL Server database either synchronously or asynchronously. The AppDataContract.cs file below the Application.cs file is normally utilized with a WCF service, but the example shown here is strictly OOP. The global.asax file is below the AppDataContract.cs file. The global.asax file utilizes the AppDataBLL.cs and The AppDataDAL.cs classes below also to access the SQL Server Stored procedure and table containing the encrypted connection strings. Finally shown are the web.config file entries to identify the environment (Developement, Quality Assurance, User Acceptance/Training, and Production database servers and the subsequent connection strings to access the application table and environment database connections.