Database Name Change with Generated Code

Posts   
 
    
smurrell
User
Posts: 59
Joined: 22-Feb-2007
# Posted on: 09-Jan-2008 07:43:45   

Hello

I have generated code for a database called IHelpDesk. If I change the name of the database to HelpDesk then the generated code says it cannot find database table [IHelpDesk].[dbo].[XYZ] even though I changed my ConnectionString in the web config to the new database name.

I then looked in the code and found it refers to IHelpDesk in the generated code. Is there anyway I can workaround this issue so that the generated code doesn't put in the database name and only checks each table by [dbo].[XYZ] or it changes the database name on the fly based on the ConnectionString.

I am using LLBLGen v2.5 and SQL Server 2005.

Regards, Simon

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 09-Jan-2008 10:17:25   

Please read the manual's section Catalog name overwriting under "Using the generated code -> Application configuration through .config files"

smurrell
User
Posts: 59
Joined: 22-Feb-2007
# Posted on: 09-Jan-2008 13:50:03   

Thanks, I will give it a try!

Walaa wrote:

Please read the manual's section Catalog name overwriting under "Using the generated code -> Application configuration through .config files"