App.config 3.1 KB

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