You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

115 lines
4.3 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. </dependentAssembly>
  65. </assemblyBinding>
  66. </runtime>
  67. <!-- If oracle.manageddataaccess.client tag is absent -->
  68. <oracle.manageddataaccess.client xdt:Transform="InsertIfMissing">
  69. <version number="*">
  70. <dataSources>
  71. </dataSources>
  72. </version>
  73. </oracle.manageddataaccess.client>
  74. <!-- If version tag is absent -->
  75. <oracle.manageddataaccess.client>
  76. <version number="*" xdt:Transform="InsertIfMissing">
  77. <dataSources>
  78. </dataSources>
  79. </version>
  80. </oracle.manageddataaccess.client>
  81. <!-- If dataSources tag is absent -->
  82. <oracle.manageddataaccess.client>
  83. <version number="*">
  84. <dataSources xdt:Transform="InsertIfMissing">
  85. </dataSources>
  86. </version>
  87. </oracle.manageddataaccess.client>
  88. <!-- add entry if missing -->
  89. <oracle.manageddataaccess.client>
  90. <version number="*">
  91. <dataSources>
  92. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " xdt:Transform="InsertIfMissing" xdt:Locator="Match(alias)"/>
  93. </dataSources>
  94. </version>
  95. </oracle.manageddataaccess.client>
  96. </configuration>