Oracle.ManagedDataAccess.EntityFramework 23.4.0
Oracle.ManagedDataAccess.EntityFramework 23.4.0
Release Notes for Oracle Data Provider for .NET, Managed Driver for Entity Framework 6 NuGet Package
April 2024
This document provides information that supplements the Oracle Data Provider for .NET (ODP.NET) documentation.
Oracle .NET Links
- Oracle .NET Home Page
- GitHub - Sample Code
- ODP.NET Discussion Forum
- YouTube
- X (Twitter)
- Email Newsletter Sign Up
New Features
- Public OracleMigrationSqlGenerator Class
Bug Fixes since Oracle.ManagedDataAccess.EntityFramework 21.9.0
- None
Installation Changes
The following app/web.config entries are added when installing this NuGet package:
- Entity Framework
The Oracle Entity Framework 6 "provider" entry is added to the "entityFramework" section to enable Entity Framework to use Oracle.ManagedDataAccess.dll.
- Connection String
A sample ODP.NET connection string entry is added to enable the classes that are derived from DbContext to be associated with a connection string instead of associating the derived class with a connection string programmatically via its constructor. The name "OracleDbContext" should be changed to the class name that derives from DbContext. The connectionString attribute should be modified properly to set the "User Id", "Password", and "Data Source" appropriately with valid values.
Tips, Limitations, and Known Issues
This section contains Entity Framework related information that pertains to both ODP.NET, Managed Driver and ODP.NET, Unmanaged Driver.
Interval Day to Second and Interval Year to Month column values cannot be compared to literals in a WHERE clause of a LINQ to Entities or an Entity SQL query.
LINQ to Entities and Entity SQL (ESQL) queries that require the usage of SQL APPLY in the generated queries will cause SQL syntax error(s) if the Oracle Database being used does not support APPLY. In such cases, the inner exception message will indicate that APPLY is not supported by the database.
ODP.NET does not currently support wildcards that accept character ranges for the LIKE operator in Entity SQL (i.e. [] and [^]). [Bug 11683837]
Executing LINQ or ESQL query against tables with one or more column names that are close to or equal to the maximum length of identifiers (30 bytes) may encounter "ORA-00972: identifier is too long" error, due to the usage of alias identifier(s) in the generated SQL that exceed the limit.
An "ORA-00932: inconsistent datatypes: expected - got NCLOB" error will be encountered when trying to bind a string that is equal to or greater than 2,000 characters in length to an XMLType column or parameter. [Bug 12630958]
An "ORA-00932 : inconsistent datatypes" error can be encountered if a string of 2,000 or more characters, or a byte array with 4,000 bytes or more in length, is bound in a WHERE clause of a LINQ/ESQL query. The same error can be encountered if an entity property that maps to a BLOB, CLOB, NCLOB, LONG, LONG RAW, XMLTYPE column is used in a WHERE clause of a LINQ/ESQL query.
An "Arithmetic operation resulted in an overflow" exception can be encountered when fetching numeric values that have more precision than what the .NET type can support. In such cases, the LINQ or ESQL query can "cast" the value to a particular .NET or EDM type to limit the precision and avoid the exception. This approach can be useful if the LINQ/ESQL query has computed/calculated columns which will store up to 38 precision in Oracle, which cannot be represented as .NET decimal unless the value is casted.
Oracle Database treats NULLs and empty strings the same. When executing string related operations on NULLS or empty strings, the result will be NULL. When comparing strings with NULLs, use the equals operator (i.e. "x == NULL") in the LINQ query, which will in turn use the "IS NULL" condition in the generated SQL that will appropriately detect NULL-ness.
If an exception message of "The store provider factory type 'Oracle.ManagedDataAccess.Client.OracleClientFactory' does not implement the IServiceProvider interface." is encountered when executing an Entity Framework application with ODP.NET, the machine.config requires and entry for ODP.NET under the "DbProviderFactories" section. To resolve this issue by adding an entry in the machine.config, reinstall ODP.NET
Creating a second instance of the context that derives from DbContext within an application and executing methods within the scope of that context that result in an interaction with the database may result in unexpected recreation of the database objects if the DropCreateDatabaseAlways database initializer is used.
Known workarounds:
- Use a different database initializer,
- Use an operating system authenticated user for the connection, or
- Include "Persist Security Info=true" in the connection string (Warning: Turning on "Persist Security Info" will cause the password to remain as part of the connection string).
Copyright (c) 2024, Oracle and/or its affiliates.
No packages depend on Oracle.ManagedDataAccess.EntityFramework.
.NET Framework 4.7.2
- EntityFramework (>= 6.4.4 && < 7.0.0)
- Oracle.ManagedDataAccess (>= 23.4.0 && < 24.0.0)
Version | Downloads | Last updated |
---|---|---|
23.4.0 | 9 | 05/31/2024 |
21.9.0 | 7 | 07/04/2023 |
21.4.0 | 5 | 06/07/2022 |
19.18.0 | 4 | 05/31/2024 |
19.6.0 | 6 | 06/07/2022 |
18.15.1 | 5 | 08/17/2023 |
18.3.0 | 4 | 06/07/2022 |
12.2.20230118 | 7 | 05/31/2024 |
12.2.20190115 | 4 | 06/07/2022 |
12.1.24230118 | 4 | 05/31/2024 |
12.1.181215 | 6 | 06/07/2022 |
12.1.2400 | 3 | 06/07/2022 |
12.1.22 | 3 | 06/07/2022 |