Oracle Entity Framework - Generate Entity From Tables in Different Schema

前端 未结 2 1073
别那么骄傲
别那么骄傲 2020-12-05 14:30

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 th

相关标签:
2条回答
  • 2020-12-05 15:05

    I am using EF 4.2 and found that I was able to use tables from another user/schema only when creating a new connection (using my_account) and using a filter when going through the Entity Data Model Wizard. Add app_schema to the Displayed Schemas filter (be sure to press Update).

    Like CMarchan suggests, if I set the filter on the connection in the server explorer, it works for me there, but the EDM wizard does not see the connection when creating a new model (maybe just a "feature" in 4.2).

    Once the EDM is created, it does allow me to add/edit tables from app_schema.

    0 讨论(0)
  • 2020-12-05 15:22

    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.

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

    Please visit this link: https://forums.oracle.com/forums/thread.jspa?threadID=2291628&tstart=0

    I hope help you with this.

    Cesar.

    0 讨论(0)
提交回复
热议问题