41 lines
2.2 KiB
XML
41 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Per altre informazioni sull'utilizzo della trasformazione web.config, vedere https://go.microsoft.com/fwlink/?LinkId=125889 -->
|
|
|
|
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
|
<!--
|
|
Nell'esempio seguente, la trasformazione "SetAttributes" modifica il valore di
|
|
"connectionString" in modo da utilizzare "ReleaseSQLServer" solo quando il localizzatore "Match"
|
|
individua un attributo "name" con valore "MyDB".
|
|
|
|
<connectionStrings>
|
|
<add name="MyDB"
|
|
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
|
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
|
</connectionStrings>
|
|
-->
|
|
<appSettings>
|
|
<!--<add key="_smtpCli" value="192.168.48.1" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
|
<add key="_emailUser" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
|
<add key="_emailPwd" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
|
<add key="_enableSSL" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />-->
|
|
</appSettings>
|
|
<connectionStrings>
|
|
<add name="GPWEntities" connectionString="metadata=res://*/Models.MapoModel.csdl|res://*/Models.MapoModel.ssdl|res://*/Models.MapoModel.msl;provider=System.Data.SqlClient;provider connection string="data source=localhost;initial catalog=SPS_GPW;persist security info=True;user id=steamware;password=viadante16;multipleactiveresultsets=True;application name=EntityFramework"" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
|
|
</connectionStrings>
|
|
<system.web>
|
|
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
|
<!--
|
|
|
|
Nell'esempio seguente, la trasformazione "Replace" sostituisce l'intera
|
|
sezione <customErrors> del file web.config.
|
|
Poiché è presente un'unica sezione customErrors nel
|
|
nodo <system.web>, non è necessario utilizzare l'attributo "xdt:Locator".
|
|
|
|
<customErrors defaultRedirect="GenericError.htm"
|
|
mode="RemoteOnly" xdt:Transform="Replace">
|
|
<error statusCode="500" redirect="InternalError.htm"/>
|
|
</customErrors>
|
|
-->
|
|
</system.web>
|
|
</configuration> |