readme.txt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. Oracle.ManagedDataAccess.EntityFramework Nuget Package Version 19.14.0 README
  2. =============================================================================
  3. Release Notes: Oracle Data Provider for .NET, Managed Driver for Entity Framework
  4. December 2021
  5. This document provides information that supplements the Oracle Data Provider for .NET (ODP.NET) for Entity
  6. Framework documentation. You have downloaded Oracle Data Provider for .NET for Entity Framework from Oracle,
  7. the license agreement to which is available at
  8. https://www.oracle.com/downloads/licenses/distribution-license.html
  9. TABLE OF CONTENTS
  10. *New Features
  11. *Installation and Configuration Steps
  12. *Installation Changes
  13. *Documentation Corrections and Additions
  14. *Entity Framework Tips, Limitations, and Known Issues
  15. Note: Please consult the ODP.NET, Managed Driver NuGet README at packages\Oracle.ManagedDataAccess.<version>
  16. for more information about the component.
  17. Note: The 32-bit "Oracle Developer Tools for Visual Studio" download from http://otn.oracle.com/dotnet is
  18. required for Entity Framework design-time features. This NuGet download does not enable design-time tools; it
  19. only provides run-time support. This version of ODP.NET for Entity Framework supports Oracle Database version
  20. 11.2 and higher.
  21. New Features
  22. ============
  23. None
  24. Bug Fixes since Oracle.ManagedDataAccess.EntityFramework NuGet Package 19.13.0
  25. ==============================================================================
  26. Bug 33593882 - EF6 - CONCURRENCY CHECK IS NOT WORKING AS EXPECTED WITH "DATABASEGENERATEDOPTION.COMPUTED" OPTION
  27. Installation and Configuration Steps
  28. ====================================
  29. The downloads are NuGet packages that can be installed with the NuGet Package Manager. These instructions apply
  30. to install ODP.NET, Managed Driver for Entity Framework.
  31. 1. Un-GAC any existing ODP.NET for Entity Framework 19c versions you have installed. For example, if you
  32. plan to use only the ODP.NET, Managed Driver for Entity Framework, only un-GAC existing managed ODP.NET for
  33. Entity Framework 19c versions then.
  34. 2. In Visual Studio, open NuGet Package Manager from an existing Visual Studio project.
  35. 3. Install the NuGet package from an OTN-downloaded local package source or from nuget.org.
  36. From Local Package Source
  37. -------------------------
  38. A. Click on the Settings button in the lower left of the dialog box.
  39. B. Click the "+" button to add a package source. In the Source field, enter in the directory location where the
  40. NuGet package(s) were downloaded to. Click the Update button, then the Ok button.
  41. C. On the left side, under the Online root node, select the package source you just created. The ODP.NET for
  42. Entity Framework NuGet package will appear.
  43. From Nuget.org
  44. --------------
  45. A. In the Search box in the upper right, search for the package with id,
  46. "Oracle.ManagedDataAccess.EntityFramework". Verify that the package uses this unique ID to ensure it is the
  47. offical Oracle Data Provider for .NET, Managed Driver for Entity Framework downloads.
  48. B. Select the package you wish to install.
  49. 4. Click on the Install button to select the desired NuGet package(s) to include with the project. Accept the
  50. license agreement and Visual Studio will continue the setup. ODP.NET, Managed Driver will be installed
  51. automatically as a dependency for ODP.NET, Managed Driver for Entity Framework.
  52. 5. Open the app/web.config file to configure the ODP.NET connection string and local naming parameters
  53. (i.e. tnsnames.ora). Below is an example of configuring the local naming parameters:
  54. <oracle.manageddataaccess.client>
  55. <version number="*">
  56. <dataSources>
  57. <!-- Customize these connection alias settings to connect to Oracle DB -->
  58. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  59. </dataSources>
  60. </version>
  61. </oracle.manageddataaccess.client>
  62. 6. Modify the app/web.config file's connection string to create a DbContext your Entity Framework application
  63. will use. Below is an example of a configured DbContext.
  64. <connectionStrings>
  65. <add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client"
  66. connectionString="User Id=hr;Password=hr;Data Source=MyDataSource"/>
  67. </connectionStrings>
  68. After following these instructions, ODP.NET, Managed Driver for Entity Framework is now configured and ready
  69. to use.
  70. NOTE: ODP.NET, Managed Driver may require its own configuration. Please consult the component's README
  71. at packages\Oracle.ManagedDataAccess.<version>.
  72. Installation Changes
  73. ====================
  74. The following app/web.config entries are added by including the "Official Oracle ODP.NET, Managed Entity Framework Driver"
  75. NuGet package to your application.
  76. 1) Entity Framework
  77. The following entry is added to enable Entity Framework to use Oracle.ManagedDataAccess.dll for executing Entity
  78. Framework related-operations, such as Entity Framework Code First and Entity Framework Code First Migrations against
  79. the Oracle Database.
  80. <configuration>
  81. <entityFramework>
  82. <providers>
  83. <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  84. </providers>
  85. </entityFramework>
  86. </configuration>
  87. 2) Connection String
  88. The following entry is added to enable the classes that are derived from DbContext to be associated with a connection
  89. string instead to associating the derived class with a connection string programmatically by passing it via its
  90. constructor. The name of "OracleDbContext" should be changed to the class name of your class that derives from DbContext.
  91. In addition, the connectionString attribute should be modified properly to set the "User Id", "Password", and
  92. "Data Source" appropriately with valid values.
  93. <configuration>
  94. <connectionStrings>
  95. <add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client" connectionString="User Id=oracle_user;Password=oracle_user_password;Data Source=oracle" />
  96. </connectionStrings>
  97. </configuration>
  98. Documentation Corrections and Additions
  99. =======================================
  100. None
  101. Entity Framework Tips, Limitations, and Known Issues
  102. ====================================================
  103. This section contains Entity Framework related information that pertains to ODP.NET.
  104. 1. Executing LINQ or ESQL query against tables with one or more column names that are close to or equal to the maximum
  105. length of identifiers (30 bytes) may encounter "ORA-00972: identifier is too long" error, due to the usage of alias
  106. identifier(s) in the generated SQL that exceed the limit.
  107. Copyright (c) 2021, 2022, Oracle and/or its affiliates.