甲骨文实体框架 - 生成实体来自不同模式表 [英] Oracle Entity Framework - Generate Entity From Tables in Different Schema

查看:90
本文介绍了甲骨文实体框架 - 生成实体来自不同模式表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我登录到Oracle用我自己的用户帐户,我们可以称之为 my_account的,然后我理所当然的选择所有的模式,我们的申请表格的的权限使用,我将称之为 app_schema

I log into Oracle using my own user account, which we can call my_account, and I am granted select privileges on all of the tables in the schema that our application uses, which I will call app_schema.

我想用实体管理器生成在 app_schema 模式中的表的实体定义,但我不具有该帐户的密码,可能不会给它,所以我必须登录为 my_account的

I would like to use Entity Manager to generate the entity definitions for the tables in the app_schema schema, but I do not have the password for that account and likely won't be given it, so I must log in as my_account.

当我运行该向导,我只能看到在 my_account的模式中的表。有什么办法从不同的模式中获得的表,这样我可以生成那些?这是一个庞大的数据库,所以手写的.edmx文件可能需要数天,并可能会导致吨错字引起的错误。我试图使用同义词,但它们是不可见的向导进行。

When I run the wizard I can only see the tables in the my_account schema. Is there any way to get the tables from a different schema so that I can generate those? This is a massive database, so writing the .edmx file by hand could take days, and will probably result in tons of typo-induced errors. I have attempted to use synonyms, but they are not visible in the wizard either.

推荐答案

在您的服务器资源管理器,选择连接和权利。
点击过滤器选项卡,选择显示模式,然后从模式列表中添加更多的模式。
记住点击更新按钮,确定保存连接上的​​变化。

In your Server explorer, select your connection and right. Click on filters tab, select Displayed schemas, then add more schemas from your schemas list. Remember click on update button and Ok to save changes on your connection.

现在,当您添加一个新的ADO.Net实体数据模型,你会看到从你的架构中的所有表。

Now when you add a new ADO.Net Entity Data Model you will see all tables from your schemas.

请访问此链接:
<一href=\"https://forums.oracle.com/forums/thread.jspa?threadID=2291628&tstart=0\">https://forums.oracle.com/forums/thread.jspa?threadID=2291628&tstart=0

我希望帮你这个问题。

塞萨尔。

这篇关于甲骨文实体框架 - 生成实体来自不同模式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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