App2.config 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  5. <section name="entityFramework"
  6. type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
  7. requirePermission="false"/>
  8. <section name="oracle.manageddataaccess.client"
  9. type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
  10. </configSections>
  11. <startup>
  12. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
  13. </startup>
  14. <entityFramework>
  15. <defaultConnectionFactory type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
  16. <providers>
  17. <provider invariantName="Oracle.ManagedDataAccess.Client"
  18. type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
  19. </providers>
  20. </entityFramework>
  21. <system.data>
  22. <DbProviderFactories>
  23. <remove invariant="Oracle.ManagedDataAccess.Client"/>
  24. <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver"
  25. type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
  26. </DbProviderFactories>
  27. </system.data>
  28. <runtime>
  29. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  30. <dependentAssembly>
  31. <publisherPolicy apply="no"/>
  32. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral"/>
  33. <bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.121.2.0"/>
  34. </dependentAssembly>
  35. </assemblyBinding>
  36. </runtime>
  37. <oracle.manageddataaccess.client>
  38. <version number="*">
  39. <dataSources>
  40. <dataSource alias="SampleDataSource"
  41. descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.100)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=gdnxfd))) "/>
  42. </dataSources>
  43. </version>
  44. </oracle.manageddataaccess.client>
  45. <oracle.dataaccess.client>
  46. <settings>
  47. <add name="bool" value="edmmapping number(1,0)"/>
  48. <add name="byte" value="edmmapping number(3,0)"/>
  49. <add name="int16" value="edmmapping number(4,0)"/>
  50. <add name="int32" value="edmmapping number(9,0)"/>
  51. <add name="int64" value="edmmapping number(18,0)"/>
  52. </settings>
  53. </oracle.dataaccess.client>
  54. <connectionStrings>
  55. <add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client"
  56. connectionString="Data Source= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.100)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = gdnxfd) ) );User Id=nxfdprod;Password=gdnxfd123;"/>
  57. </connectionStrings>
  58. </configuration>