Jon
Jon

Reputation:

Entity Framework and Oracle

I've got to look at the ORM solution for a new ASP.NET Web App with an Oracle backend.

Has anyone had good/bad experience with using Entity Framework with Oracle?

Are there any (free preferably) alternatives?

Upvotes: 4

Views: 4597

Answers (7)

Christian Rios
Christian Rios

Reputation: 467

Support was dropped for EF6 so we had to stick to EF5 for it to be able to connect to oracle db. We ran into some issues with mapping. It would map number(5) to short by default and would throw an exception if it read above 32k. The fix caused a bunch of errors in deployment. We ended up changing the database. Avoid number(5) and number(10) data types.

I am currently shopping around for another orm with LINQ and Oracle support.

Free so far, I have found Telerik Data Access and NHibernate.

Upvotes: 0

UtopiaLtd
UtopiaLtd

Reputation: 2590

Oracle now provides support for Entity Framework with its Oracle Data Access Components (ODAC) However, this is only supported for .NET 4.0+.

If you wind up with a customer like I had, who stubbornly insisted upon staying .NET 2.0/3.5, the now-free Telerik Open-Access ORM behaves very similarly to Entity Framework supports a number of databases including Oracle. Support for older versions of .NET will likely be dropped if they haven't been already, but there are versions you can surely download that provide the support.

Upvotes: 0

David North
David North

Reputation: 1406

During June, 2010, Oracle released a statement of direction regarding support for Microsoft ADO.NET Entity Framework:

Oracle plans to enhance Oracle Data Provider for .NET (ODP.NET) to support ADO.NET Entity Framework. Oracle database developers will be able to use Visual Studio tools and APIs that are a standard part of the ADO.NET Entity Framework.

ADO.NET Entity Framework is a client-side/middle-tier technology. As such, the Oracle’s client software and ODP.NET will integrate directly with Entity Framework to support data access with the Oracle Database.

Oracle plans on releasing a beta "Around the end of 2010" and to production in 2011.

More information can be found by downloading the Statement of Direction itself.

Upvotes: 3

ValueCoder
ValueCoder

Reputation: 21

We've had great success with Oracle 11g and Entity Framework 1.0 (Visual Studio 2008 SP1) on my current project. To bridge the gap with the out of the box functionality, I've implemented a free tool from CodePlex called the EF Oracle ODP Provider. This leverages the latest Oracle data providers and provides a wrapper to enable Entity Data Model generation. Unfortunately, it does not integrate well with the Entity Designer built into Visual Studio, so you have to run a few command line utilities to get your model stood up and maintained.

You can find out more here: http://eforacleodpprovider.codeplex.com/.

Upvotes: 1

Devart
Devart

Reputation: 121902

Both Microsoft Oracle Client and ODP.NET does not support Entity Framework and LINQ to SQL. DataDirect in their new Beta version supports Entity Framework but does not support LINQ to SQL. Devart dotConnect for Oracle supports both Entity Framework (and LINQ to Entities) and LINQ to Oracle (Oracle-specific implementation of LINQ to SQL).

Upvotes: 1

jspru
jspru

Reputation: 1019

Microsoft doesn't have a supported option for Oracle for the Entity Framework - all the current options are non-free 3rd party providers.

NHibernate works very well with Oracle in my experiences, as does LLBLGenPro (not free, but has a reasonably priced per-developer license for the entity mapping designer).

Upvotes: 3

Nathan Fisher
Nathan Fisher

Reputation: 7941

I dont have any experience with EF but nhibernate is a very good alternative.
Have a look at the screen casts by Stephen Bohlen at summer of nhibernate for a great introduction to nhibernate.

Upvotes: 1

Related Questions