Changing the name of the EF Connection string in app.config

Posts   
 
    
ianvink
User
Posts: 393
Joined: 15-Dec-2006
# Posted on: 06-Feb-2013 19:26:01   

My client has requested that the name of the connection string in the app.config be changed.

LLBL Generates:

<add name="ConnectionString.SQL Server (SqlClient)" connectionString="blah blah" providerName="System.Data.EntityClient" />

My client wants:

<add name="AAA" connectionString="blah blah" providerName="System.Data.EntityClient" />

I didn't see an option in the designer to change the name to "AAA"

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 06-Feb-2013 19:41:46   

Connection string key name pattern 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.

That's a project setting in the Designer. Under: Code Generation => General