Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > General> How to change "Main.ConnectionString
 

Pages: 1
General
How to change "Main.ConnectionString
Page:1/1 

  Print all messages in this thread  
Poster Message
nevernet
User



Location:

Joined on:
01-Feb-2010 13:21:09
Posted:
67 posts
# Posted on: 24-Feb-2010 12:54:21.  
Code:
<add key="Main.ConnectionString" value="Server=192.168.200.10;Database=DD;User ID=sa;Password=123;"/>

the key is "Main.ConnectionString", how to change it to other value?

Thanks.
Dev Environment as below:
.Net 3.5, LLBLGen Pro 2.6, SQLServer 2008, IIS7
 
Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
13712 posts
# Posted on: 24-Feb-2010 15:06:58.  
From the Project Properties in the Designer -> ConnectionStringKeyName
You will have to regenerate the code for this to take effect.


  Top
nevernet
User



Location:

Joined on:
01-Feb-2010 13:21:09
Posted:
67 posts
# Posted on: 24-Feb-2010 15:15:59.  
Thank you very much
Dev Environment as below:
.Net 3.5, LLBLGen Pro 2.6, SQLServer 2008, IIS7
 
Top
carni4
User



Location:

Joined on:
09-Aug-2010 20:05:04
Posted:
20 posts
# Posted on: 09-Aug-2010 20:06:33.  
Is this still valid for version 3.0? All I see in the designer is ConnectionStringKeyNamePattern, which contains ConnectionString.{$ProviderName}

  Top
nevernet
User



Location:

Joined on:
01-Feb-2010 13:21:09
Posted:
67 posts
# Posted on: 10-Aug-2010 02:51:43.  
i am not sure, but you can try.
also ,you can read the manuall carefully, maybe you will find answer.

Daniel
Dev Environment as below:
.Net 3.5, LLBLGen Pro 2.6, SQLServer 2008, IIS7
 
Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
7627 posts
# Posted on: 10-Aug-2010 05:33:14.  
carni4 wrote:
Is this still valid for version 3.0? All I see in the designer is ConnectionStringKeyNamePattern, which contains ConnectionString.{$ProviderName}

That's it. You can change it of course. I quote the manual:
Quote:
ConnectionStringKeyNamePattern The pattern for the key in the generated config file under which the connection string for a target database is stored. A macro is required for this property: {$ProviderName}. This macro is replaced with the short name in the driver.config of the active driver. This way multiple connection strings can be emitted into the generated code without name clashes.


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
carni4
User



Location:

Joined on:
09-Aug-2010 20:05:04
Posted:
20 posts
# Posted on: 10-Aug-2010 06:00:47.  
Thanks. I guess I wasn't sure if I could remove the "provider name" token. I can confirm that this works as expected.
  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.