Doha Msg

Doha Msg

  • NA
  • 11
  • 20.6k

connexion string redundancy

Nov 29 2010 2:35 AM
Hi, this is extracted from app.config :

   <connectionStrings>
<add name="MyConnectionString" connectionString="data source=127.0.0.1;initial catalog=PhoneRepair;User ID=sa;Password=xxxxxx;persist security info=False;packet size=4096"
providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="ConnectionString.SQL Server (SqlClient)" value="data source=127.0.0.1;initial catalog=
PhoneRepair;User ID=sa;Password=xxxxxx;persist security info=False;packet size=4096" />
<add key="autoDependencyInjectionDiscovery" value="true" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
How to make the <appsettings> section use the "MyConnectionString", since it's redundant ?

Thanks.

Answers (1)