No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

116 líneas
4.4 KiB

  1. <?xml version="1.0"?>
  2. <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  3. <configSections xdt:Transform="InsertIfMissing">
  4. </configSections>
  5. <configSections xdt:Transform="InsertBefore(/configuration/*[1])">
  6. </configSections>
  7. <!-- remove existing entry -->
  8. <configSections xdt:Locator="XPath(/configuration/configSections[last()])">
  9. <section name="oracle.manageddataaccess.client" xdt:Transform="Remove" xdt:Locator="Match(name)" />
  10. </configSections>
  11. <!-- insert new entry -->
  12. <configSections xdt:Locator="XPath(/configuration/configSections[last()])">
  13. <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
  14. </configSections>
  15. <configSections xdt:Transform="RemoveAll" xdt:Locator="Condition(count(*)=0)" />
  16. <!-- If system.data tag is absent -->
  17. <system.data xdt:Transform="InsertIfMissing">
  18. <DbProviderFactories>
  19. </DbProviderFactories>
  20. </system.data>
  21. <!-- If system.data tag is present, but DbProviderFactories tag is absent -->
  22. <system.data>
  23. <DbProviderFactories xdt:Transform="InsertIfMissing">
  24. </DbProviderFactories>
  25. </system.data>
  26. <!-- remove existing ODPM entry -->
  27. <system.data>
  28. <DbProviderFactories>
  29. <remove invariant="Oracle.ManagedDataAccess.Client" xdt:Transform="Remove" xdt:Locator="Match(invariant)" />
  30. <add name="ODP.NET, Managed Driver" xdt:Transform="Remove" xdt:Locator="Match(name)" />
  31. </DbProviderFactories>
  32. </system.data>
  33. <!-- add new ODPM entry -->
  34. <system.data>
  35. <DbProviderFactories>
  36. <remove invariant="Oracle.ManagedDataAccess.Client" xdt:Transform="Insert"/>
  37. <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
  38. </DbProviderFactories>
  39. </system.data>
  40. <!-- If runtime tag is absent -->
  41. <runtime xdt:Transform="InsertIfMissing">
  42. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  43. </assemblyBinding>
  44. </runtime>
  45. <!-- If runtime tag is present, but assembly binding tag is absent -->
  46. <runtime>
  47. <assemblyBinding xdt:Transform="InsertIfMissing" xmlns="urn:schemas-microsoft-com:asm.v1">
  48. </assemblyBinding>
  49. </runtime>
  50. <!-- remove existing entry -->
  51. <runtime>
  52. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  53. <dependentAssembly xdt:Transform="Remove"
  54. xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Oracle.ManagedDataAccess')" >
  55. </dependentAssembly>
  56. </assemblyBinding>
  57. </runtime>
  58. <!-- insert new entry -->
  59. <runtime>
  60. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  61. <dependentAssembly xdt:Transform="Insert">
  62. <publisherPolicy apply="no"/>
  63. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  64. <bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.122.19.1" />
  65. </dependentAssembly>
  66. </assemblyBinding>
  67. </runtime>
  68. <!-- If oracle.manageddataaccess.client tag is absent -->
  69. <oracle.manageddataaccess.client xdt:Transform="InsertIfMissing">
  70. <version number="*">
  71. <dataSources>
  72. </dataSources>
  73. </version>
  74. </oracle.manageddataaccess.client>
  75. <!-- If version tag is absent -->
  76. <oracle.manageddataaccess.client>
  77. <version number="*" xdt:Transform="InsertIfMissing">
  78. <dataSources>
  79. </dataSources>
  80. </version>
  81. </oracle.manageddataaccess.client>
  82. <!-- If dataSources tag is absent -->
  83. <oracle.manageddataaccess.client>
  84. <version number="*">
  85. <dataSources xdt:Transform="InsertIfMissing">
  86. </dataSources>
  87. </version>
  88. </oracle.manageddataaccess.client>
  89. <!-- add entry if missing -->
  90. <oracle.manageddataaccess.client>
  91. <version number="*">
  92. <dataSources>
  93. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " xdt:Transform="InsertIfMissing" xdt:Locator="Match(alias)"/>
  94. </dataSources>
  95. </version>
  96. </oracle.manageddataaccess.client>
  97. </configuration>