how can I remove the database name?

Posts   
 
    
Posts: 10
Joined: 10-Jan-2005
# Posted on: 31-Jan-2005 19:05:09   

We have a development db and a staging db, and they have different database name. When the code generated from development db is deployed to staging db, an exception is thrown because the DAL can not find the table.

this is because the generated code includes the database name. I am wondering how to deal with this problem. Can I config it in the designer or do I need to manually rename the db name in PersistenceInfoFactory class?

Thanks!

bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 31-Jan-2005 19:36:58   

wangchao1687 wrote:

We have a development db and a staging db, and they have different database name. When the code generated from development db is deployed to staging db, an exception is thrown because the DAL can not find the table.

this is because the generated code includes the database name. I am wondering how to deal with this problem. Can I config it in the designer or do I need to manually rename the db name in PersistenceInfoFactory class?

Thanks!

search the docs for "catalogNameToUse"

bert

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 31-Jan-2005 20:08:32   

To be exact: Using the generated code / Adapter / DataAccessAdapter functionality -> SqlServer specific settings

Frans Bouma | Lead developer LLBLGen Pro