Print Page | Close Window

Database Name Hardcoded

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3275
Printed Date: 24-Apr-2024 at 2:17am


Topic: Database Name Hardcoded
Posted By: Vincent
Subject: Database Name Hardcoded
Date Posted: 21-Feb-2012 at 5:55am
Hi Everybody
 
I am using devforce 2010V6.1.3.1 in my class library project that is linked with ASP.Net application. On deployment sites I  have databases with different names but with the same schema.
 
On the deployment site, if I change the database name on the connection string and set it to the name different from the one used during creation of the model, the application does not connect to the database until I create the database with the same name like on on my development machine.
 
Can you please help me?
 
Best Regards,
Vincent



Replies:
Posted By: DenisK
Date Posted: 22-Feb-2012 at 12:39pm
Hi Vincent,

It sounds like you may want to use data source extensions. This allows you to connect to different databases with the same schema. You can also resolve connection strings dynamically at run time if you wish to.

Please see the following page for more details.

http://drc.ideablade.com/xwiki/bin/view/Documentation/data-sources - http://drc.ideablade.com/xwiki/bin/view/Documentation/data-sources



Print Page | Close Window