简体   繁体   English

实体框架是否支持Oracle 10g?

[英]Does Entity Framework support Oracle 10g?

Is there any way to use Entity Framework with oracle 10g? 有什么方法可以将Entity Framework与oracle 10g一起使用? I am trying to create an entity model but i cannot see a data source for oracle. 我正在尝试创建实体模型,但是看不到oracle的数据源。 Appreciate your help. 感谢您的帮助。

Thanks, 谢谢,

Yes, sort of. 是的,有点。 EF is a standard interface. EF是标准接口。 You need to install a provider first. 您需要首先安装提供程序。

Entity Framework is implemented via interface implementations by providers for each specific database. 实体框架是由提供程序通过接口实现为每个特定数据库实现的。 You have to find a provider for Oracle. 您必须找到Oracle的提供程序。 One I use is Devart dotConnect. 我使用的是Devart dotConnect。 You should also be able to use Oracle's latest 12c managed provider with 10g. 您还应该能够将Oracle最新的12c托管提供程序与10g一起使用。 I typically develop across 10g - 12c databases with a single client and toolset and have no compatibility issues using 11g or 12c providers against 10g. 我通常使用单个客户端和工具集跨10g-12c数据库进行开发,并且使用针对10g的11g或12c提供程序时没有兼容性问题。 If you are unsure, Oracle publishes a compatibility matrix of client versions to server versions. 如果不确定,Oracle会发布客户端版本与服务器版本的兼容性列表。

http://www.devart.com/dotconnect/oracle/ http://www.devart.com/dotconnect/oracle/

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

Entity Framework, does not, within itself, implement support for Oracle, you must reference the appropriate assemblies that include an EF provider. 实体框架本身并未实现对Oracle的支持,因此必须引用包含EF提供程序的适当程序集。

Same goes for Linq to SQL. Linq to SQL也是如此。

You may find multiple EF providers for a given database platform. 您可能会找到给定数据库平台的多个EF提供程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM