1
Answer

connexion string redundancy

Doha Msg

Doha Msg

13y
10.9k
1
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)