是否可以从其他数据库生成edmx文件? [英] Is it possible to generate edmx file from other databases?

查看:98
本文介绍了是否可以从其他数据库生成edmx文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我正在使用两个数据库(Oracle和SQL Server).

那么,除了SQL Server之外,是否还有其他任何方法可以使用.edmx(ADO.Net实体数据模型)文件生成文件?

如果可能的话我该怎么办?
请尽快回复....

关于问候
RK

In my project, am using two databases (Oracle and SQL Server).

So is there any possible way to generate .edmx(ADO.Net entity data model) file using databases other than SQL Server?

If it is possible how can I?
Please respond it ASAP....

With regards
R.K.

推荐答案

实体框架不支持将多个数据库映射到一个model/.edmx文件,EF具有提供程序模型,因此可以使用多种类型的数据库,但是EF 不支持映射到多个数据库的单个模型.

参考类似的讨论:
使用Visual Studio统一两个模型(edmx) [ ^ ]
Entity Framework does not support mapping more than one database to one model/.edmx file, The EF has a provider model so that more than one type of database can be used with it, but the EF does not support a single model mapped to more than one database.

Refer similar discussion:
unify two models (edmx) with visual studio[^]


这篇关于是否可以从其他数据库生成edmx文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆