Skip to content

Connexion string redundancy

Doha Msg

Asked Nov 28, 2010, 9:35 PM EST1 answer
Share
LinkedInX
Hi, this is extracted from app.config :

HTML / XML
   <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.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Hirendra Sisodiya
    0
    you can edit app.config file as xml file....
    0