实体框架数据库 - 首先使用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.
更多推荐
发布评论