I am working on a .Net web application and I am using the Data Access Application block.
On each of my pages I am using the following to instantiate an abstract version of my database .
Database _db = EnterpriseLibraryContainer.Current.GetInstance("my_DB");
I was wondering is this a big performance hit on my application - and wouldn't I be better off creating a Public Static instance of the DB, that can be accessed throughout the app.
Is there any reason why I shouldn't go the proposed route?