Generated Code contains reference to Development DB

Posts   
 
    
Flynn
User
Posts: 17
Joined: 28-Jan-2009
# Posted on: 16-Mar-2009 17:03:25   

I've noticed that within two classes generated by LLBLGen, it includes the name of my development database, "LOCAL_IHIDB".

\HelperClasses\PersistenceInfoProvider.cs:  
   base.AddElementMapping( "TopicEntity", "LOCAL_IHIDB", @"dbo", "lmsTopic", 3 );

\StoredProcedureCallerClasses\RetrievalProcedures.cs:
   string procName = SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine.GetNewStoredProcedureName("[LOCAL_IHIDB].[dbo].[lms_LessonPageOrder]");

Clearly this is an issue when moving it into a test or production environment. Is there are way to avoid or remove these entries when working with SelfServicing classes?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 16-Mar-2009 17:50:35   

Please check 'catalog name overwriting' (and schema name overwriting) in the documentation in the section "Using your generated code" -> Application configuration through config files

Frans Bouma | Lead developer LLBLGen Pro