1

Can I use entityframework core 7 with oracle database for an exiting tables and views? I just want to add the tables and views to the context and will not add migration or change anything through the .net 6 application.

4
  • 1
    EF Core 7 is not released yet. Also Oracle provider is not updated to EF Core 7. Check versions. Answer is: wait for official support. Commented Aug 16, 2022 at 12:54
  • Yes, exactly. I used EF core 6 as i couldn't wait for Oracle provide official release for EF core 7. Commented Aug 18, 2022 at 9:50
  • I do not see solution here. Oracle provider for some unknown reason is closed source. Commented Aug 18, 2022 at 9:56
  • You can create issue here and ask when they plan to release preview version, Commented Aug 18, 2022 at 10:04

1 Answer 1

2

Yes, you must Scaffold database like this command Scaffold-DbContext "DATA SOURCE=Datasource;PASSWORD=xxxxxx;USER ID=xxxxx" Oracle.EntityFrameworkCore -OutputDir Models -Tables PURCHASEORDER -Force -Context "AppDBContext"

Sign up to request clarification or add additional context in comments.

1 Comment

Yes this is what i did but i used EF core 6 not 7.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.