App.config 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  7. </configSections>
  8. <entityFramework>
  9. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  10. <parameters>
  11. <parameter value="mssqllocaldb" />
  12. </parameters>
  13. </defaultConnectionFactory>
  14. <providers>
  15. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  16. <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  17. </providers>
  18. </entityFramework>
  19. <system.data>
  20. <DbProviderFactories>
  21. <remove invariant="Oracle.ManagedDataAccess.Client" />
  22. <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" />
  23. </DbProviderFactories>
  24. </system.data>
  25. <runtime>
  26. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  27. <dependentAssembly>
  28. <publisherPolicy apply="no" />
  29. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  30. <bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.122.19.1" />
  31. </dependentAssembly>
  32. </assemblyBinding>
  33. </runtime>
  34. <oracle.manageddataaccess.client>
  35. <version number="*">
  36. <dataSources>
  37. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  38. </dataSources>
  39. </version>
  40. </oracle.manageddataaccess.client>
  41. <connectionStrings>
  42. <add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client" connectionString="User Id=oracle_user;Password=oracle_user_password;Data Source=oracle" />
  43. <add name="LYDataContext" connectionString="metadata=res://*/LYDATA.csdl|res://*/LYDATA.ssdl|res://*/LYDATA.msl;provider=Oracle.ManagedDataAccess.Client;provider connection string=&quot;DATA SOURCE=192.168.0.68:1521/LYDATA.LIOT;PASSWORD=1;PERSIST SECURITY INFO=True;USER ID=LYDATA&quot;" providerName="System.Data.EntityClient" />
  44. </connectionStrings>
  45. </configuration>