Alaa Adel
Alaa Adel

Reputation: 143

Entityframework core 7 with Oracle database in .Net 6 application

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.

Upvotes: 1

Views: 1453

Answers (1)

Hossein Giyah
Hossein Giyah

Reputation: 56

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"

Upvotes: 2

Related Questions