Skip to Main Content

Oracle Developer Tools for Visual Studio

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use EntityFramework with an Oracle database

User_R158ODec 5 2022

I am using VS 2022 and .net 6.0.
I am trying to use the Entity Framework for an Oracle database. I have used ‘Scaffold-DbContext’ before but with an SQL database and no problems. However, when I run ‘Scaffold-DbContext’ for an Oracle database, I get an error: "Oracle.ManagedDataAccess.Client.OracleException (0x80004005): Connection request timed out" even though I can connect to it via Oracle Sql Developer with no problems.
2022-12-05_14-48-57.png2022-12-05_14-49-26.pngMy project is a .Net 6.0 console app and have installed the following Nuget packages
2022-12-05_15-06-47.pngAny suggestions on how to resolve this?
Thank you very much!

Comments
Post Details
Added on Dec 5 2022
3 comments
1,603 views