Can you use Microsoft Entity Framework with Oracle? [closed]
Asked Answered
B

7

98

Is it possible to use Microsoft Entity Framework with Oracle database?

Baird answered 17/9, 2008 at 12:36 Comment(1)
E
27

DevArt's OraDirect provider now supports entity framework. See http://devart.com/news/2008/directs475.html

Eclogue answered 17/9, 2008 at 13:45 Comment(3)
Devart dotConnect for Oracle (formerly OraDirect .NET) now provides support for Entity Framework v4 Release Candidate devart.com/blogs/dotconnect/?p=2062Fruitarian
You can read more and download trial version of Devart dotConnect for Oracle here - devart.com/dotconnect/oracle.Diella
For Model-first, the devArt dotConnect DDL generation template makes a much more sensible stab at data types than the first-cut Oracle beta (eg: doesn't just make everything Numeric(38,0)). The Oracle template doesn't even generate sequences for identity fields...Anywheres
C
81

Update:

Oracle now fully supports the Entity Framework. Oracle Data Provider for .NET Release 11.2.0.3 (ODAC 11.2) Release Notes: http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/whatsnew.htm#BGGJIEIC

More documentation on Linq to Entities and ADO.NET Entity Framework: http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featLINQ.htm#CJACEDJG

Note: ODP.NET also supports Entity SQL.

Calm answered 13/2, 2011 at 17:27 Comment(4)
Oracle will likely release a beta refresh at some point in the future. In case the link above breaks, keep an eye on oracle.com/technetwork/topics/dotnet/whatsnew/index.html for announcements.Extremism
Note that Code-First is NOT supportedVallo
now, in 2013, any driver fully managed .NET for Oracle (EF included) ?Petite
@Petite - In 2015 (and probably earlier) Oracle has a managed driver that supports Entity Framework. It's available in NuGet.Sneaky
E
27

DevArt's OraDirect provider now supports entity framework. See http://devart.com/news/2008/directs475.html

Eclogue answered 17/9, 2008 at 13:45 Comment(3)
Devart dotConnect for Oracle (formerly OraDirect .NET) now provides support for Entity Framework v4 Release Candidate devart.com/blogs/dotconnect/?p=2062Fruitarian
You can read more and download trial version of Devart dotConnect for Oracle here - devart.com/dotconnect/oracle.Diella
For Model-first, the devArt dotConnect DDL generation template makes a much more sensible stab at data types than the first-cut Oracle beta (eg: doesn't just make everything Numeric(38,0)). The Oracle template doesn't even generate sequences for identity fields...Anywheres
L
11

Oracle have announced a "statement of direction" for ODP.net and the Entity Framework:

In summary, ODP.Net beta around the end of 2010, production sometime in 2011.

Lottie answered 11/6, 2010 at 16:28 Comment(2)
By then V5 of the EF would have shipped, oracle seems to be doing what ever it can get away with to mark it hard to use .net with oracle and Microsoft is doing what ever it can get away with it make it hard to use oracle with .netDonielle
The Oracle website got redesigned and some links got broken. Here is the new link for the Oracle and Entity Framework statement of direction: oracle.com/technetwork/topics/dotnet/whatsnew/…Extremism
D
4

In case you don't know it already, Oracle has released ODP.NET which supports Entity Framework. It doesn't support code first yet though.

http://www.oracle.com/technetwork/topics/dotnet/index-085163.html

Dazzle answered 12/1, 2012 at 15:28 Comment(0)
C
1

The answer is "mostly".

We've hit a problem using it where the EF generates code that uses the CROSS and OUTER APPLY operators. This link shows that MS knows its a problem with SQL Server previous to 2005 however, they forget to mention that these operators are not supported by Oracle either.

Cordiality answered 20/7, 2010 at 15:0 Comment(2)
what EF provider are you using?Codify
FYI - The APPLY SQL keyword was added to Oracle Database 12c. So eventually this issue will fade away as people move to this version of the database. The scenarios where APPLY shows up are not that common.Extremism
C
1

Now has a new nuget package, try use it: https://www.nuget.org/packages/Oracle.ManagedDataAccess.EntityFramework/

Cloots answered 22/4, 2019 at 20:4 Comment(1)
Banetti Can I use it in .NET Core 2.2 application?Statvolt

© 2022 - 2024 — McMap. All rights reserved.