Generated PersistanceInfoProvider includes database name

Posts   
 
    
nico
User
Posts: 2
Joined: 13-Mar-2009
# Posted on: 13-Mar-2009 09:10:38   

I use llblgen2.6 pro in selfservicemode. However if I want to run a project to a database with another name (restored database of some days earlier on the same server, but with a different name) the code is not using the databasename as provided in the connectionstring.

I found that the database name is also stored in the PersistenceInfoProvider.cs file. If I make that empty than it works.

How can I always generate code without storing the database name in PersistenceInfoProvider.cs? Is this some setting in llblgen?

Regards, Nico

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 13-Mar-2009 09:32:20   

The database name is hard coded because sometimes users can use entities from more than one database in the same project.

To run the code against another database name, you should use Catalog name overwriting

nico
User
Posts: 2
Joined: 13-Mar-2009
# Posted on: 13-Mar-2009 10:18:57   

Thanx for the quick reply. That works!