问题
Is it possible to use Microsoft Entity Framework with Oracle database?
回答1:
DevArt's OraDirect provider now supports entity framework. See http://devart.com/news/2008/directs475.html
回答2:
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.
回答3:
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.
回答4:
Yes. See this step by step tutorial of Entity Framework, LINQ, and Model-First for the Oracle database (11G), and using Visual Studio 2010 with .NET 4.
回答5:
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
回答6:
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.
回答7:
Now has a new nuget package, try use it: https://www.nuget.org/packages/Oracle.ManagedDataAccess.EntityFramework/
来源:https://stackoverflow.com/questions/82644/can-you-use-microsoft-entity-framework-with-oracle