I would like to mount using the saved string: InstanciaSQLServer
, UserSQL
and PWSQL
, is it possible?
Example of my app.config
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<-section name="BancoDeHoras.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
<userSettings>
<BancoDeHoras.Properties.Settings>
<setting name="InstanciaSQLServer" serializeAs="String">
<value />
</setting>
<setting name="UserSQL" serializeAs="String">
<value />
</setting>
<setting name="PWSQL" serializeAs="String">
<value />
</setting>
</BancoDeHoras.Properties.Settings>
</userSettings>
<connectionStrings>
<add
name="conection"
connectionString ="Data Source =[InstanciaSQLServer]; Initial Catalog = BancoDeHoras; User id = [UserSQL]; pwd=[PWSQL]"/>
</connectionStrings>