Home > Mobile >  Entityframework core 7 with Oracle database in .Net 6 application
Entityframework core 7 with Oracle database in .Net 6 application

Time:08-19

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.

CodePudding user response:

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"

  • Related