Oracle.ManagedDataAccess.EntityFramework
23.4.0
Prefix Reserved
dotnet add package Oracle.ManagedDataAccess.EntityFramework --version 23.4.0
NuGet\Install-Package Oracle.ManagedDataAccess.EntityFramework -Version 23.4.0
<PackageReference Include="Oracle.ManagedDataAccess.EntityFramework" Version="23.4.0" />
paket add Oracle.ManagedDataAccess.EntityFramework --version 23.4.0
#r "nuget: Oracle.ManagedDataAccess.EntityFramework, 23.4.0"
// Install Oracle.ManagedDataAccess.EntityFramework as a Cake Addin #addin nuget:?package=Oracle.ManagedDataAccess.EntityFramework&version=23.4.0 // Install Oracle.ManagedDataAccess.EntityFramework as a Cake Tool #tool nuget:?package=Oracle.ManagedDataAccess.EntityFramework&version=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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- EntityFramework (>= 6.4.4 && < 7.0.0)
- Oracle.ManagedDataAccess (>= 23.4.0 && < 24.0.0)
NuGet packages (24)
Showing the top 5 NuGet packages that depend on Oracle.ManagedDataAccess.EntityFramework:
Package | Downloads |
---|---|
Afx.Data.Oracle.Entity
Afx.Data.Oracle.Entity |
|
HCP.Utils
Test |
|
Vasont.API.Data
Contains the core database entity model and support functions for the Vasont Inspire API. |
|
AIngedata
.net base support 4.5+ standard2+(base ef:MSSQL,MYSQL,ORACLE,SQLLITE) |
|
InMotionColombia.VisualTIME.Data
In Motion Colombia VisualTIME data access. |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on Oracle.ManagedDataAccess.EntityFramework:
Repository | Stars |
---|---|
zzzprojects/EntityFramework.DynamicFilters
Global filtering for Entity Framework.
|
|
whywhy898/DDit-Rapid-Development-Framework
帮助企业快速开发的.net项目框架 Help companies develop the.net project framework
|
|
Coldairarrow/Colder.Fx.Net.AdminLTE
A Web Rapid Development Framework For .NET4.472 Based On AdminLTE
|
|
Coldairarrow/Coldairarrow.Fx.Net.Easyui.GitHub
A Web Rapid Development Framework For .NET4.52
|
Version | Downloads | Last updated |
---|---|---|
23.4.0 | 30,862 | 5/2/2024 |
21.9.0 | 223,916 | 1/19/2023 |
21.5.0 | 126,368 | 1/4/2022 |
21.4.0 | 83,124 | 10/27/2021 |
19.18.0 | 75,242 | 1/19/2023 |
19.14.0 | 53,423 | 1/4/2022 |
19.13.0 | 27,817 | 10/8/2021 |
19.7.0 | 458,016 | 4/21/2020 |
19.6.0 | 337,810 | 12/6/2019 |
19.3.0 | 414,356 | 5/22/2019 |
18.15.1 | 3,878 | 2/3/2023 |
18.15.0 | 7,071 | 8/5/2021 |
18.3.0 | 415,946 | 8/29/2018 |
12.2.20230118 | 11,400 | 2/3/2023 |
12.2.20220118 | 6,398 | 12/7/2021 |
12.2.20190115 | 56,190 | 1/26/2019 |
12.2.1100 | 624,716 | 5/31/2017 |
12.1.24230118 | 3,256 | 2/3/2023 |
12.1.24220118 | 3,503 | 12/7/2021 |
12.1.181215 | 19,286 | 2/4/2019 |
12.1.2400 | 626,500 | 10/14/2015 |
12.1.22 | 111,113 | 6/23/2015 |
12.1.21 | 135,988 | 1/16/2015 |