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.
-
1EF Core 7 is not released yet. Also Oracle provider is not updated to EF Core 7. Check versions. Answer is: wait for official support.Svyatoslav Danyliv– Svyatoslav Danyliv2022-08-16 12:54:27 +00:00Commented 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.Alaa Adel– Alaa Adel2022-08-18 09:50:14 +00:00Commented Aug 18, 2022 at 9:50
-
I do not see solution here. Oracle provider for some unknown reason is closed source.Svyatoslav Danyliv– Svyatoslav Danyliv2022-08-18 09:56:49 +00:00Commented Aug 18, 2022 at 9:56
-
You can create issue here and ask when they plan to release preview version,Svyatoslav Danyliv– Svyatoslav Danyliv2022-08-18 10:04:26 +00:00Commented Aug 18, 2022 at 10:04
Add a comment
|
1 Answer
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"
1 Comment
Alaa Adel
Yes this is what i did but i used EF core 6 not 7.