Hi,
We are using LLBLGenPro v2.0 for data layer generation in our project. We are using the adapter model to generate the code from db schema. I am having doubt in the Init() method of PersistenceInfoProvider.cs file.
- Generated the DAL layer based on db schema using a development sqlserver m/c.
- At later point of time we had moved the development sqlserver to another machine with existing schema but with different catalog(database name).
- We had changed only the appropriate connection string info in app.config file without regenerating the DAL Layer.
- While try to use the dal code (With new connection string) from our Business logic code it still points to the old catalog name and error shows up. While try to debug I had checked in the PersistenceInfoProvider.cs class. In the InitEntityNameEntityMappings method we found catalog name as hardcoded.
base.AddElementMapping( "EntityName", "OptimaTigerDatabase", @"Activity", "Action", 9 );
Actually we had changed the catalog name in the app.config from OptimaTigerDatabase to OptimaSG. Whether catalog name will be hardcoded while generating the code from Schema or any other way that will be configurable.
Help is very much appreciated.
Regards
Prabhu