实体框架数据库

编程入门 行业动态 更新时间:2024-10-28 04:25:10
实体框架数据库 - 首先使用Oracle数据库(Entity Framework Database-First with Oracle Database)

我正在开发一个ASP.NET WebForms应用程序,其实体框架数据库首先与SQL Server连接,我想将相同的实体数据模型与Oracle数据库连接。

我担心的是:

如何在我的开发机器上安装Oracle数据库引擎进行测试? 如何将数据模型与Oracle而不是SQL Server连接? 如何在Oracle中生成相同的模式? 我需要安装驱动程序,工具或应用程序吗?

I'm developing an ASP.NET WebForms application with Entity Framework Database-First connected with SQL Server, and I want to connect the same Entity Data Model with Oracle Database.

My concerns are:

How to install Oracle Database Engine on my dev machine to test? How to connect the data model with Oracle instead of SQL Server? How to generate the same schema into Oracle? Are there drivers, tools, or apps I need to install?

最满意答案

我和你做的完全一样

即将SQL Server上的ASP.NET MVC应用程序转换为Oracle。

由于您的应用程序已经运行,您可以做的是

从SQL Server数据库生成创建脚本, 在Oracle中创建相同的表。 从这里安装ODP.NET。 这将允许您从.NET应用程序连接到Oracle。 现在从Oracle中的表创建一个新的edmx文件,如果您正确地执行了所有操作,那么您的应用程序应该正在运行。

注意:只有拥有VS许可证才能看到ODP.NET提供程序。 它在免费版本中不可见。

I am doing exactly the same as you

i.e. Converting a ASP.NET MVC application on SQL server to Oracle.

Since your application is already running, what you can do, is

generate create scripts from your SQL Server database, create the same tables in Oracle. Install ODP.NET from here. This will allow you to connect to Oracle from a .NET application. Now create a new edmx file from the tables in Oracle and if you do everything properly, your application should be running.

Note: ODP.NET provider is only visible if you have a VS license. It is not visible on the free version.

更多推荐

本文发布于:2023-08-07 19:45:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465657.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实体   框架   数据库

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!