I changed my command in PMC to
Scaffold-DbContext "//connectionstring" Oracle.EntityFrameworkCore -Table //schemaName.tableName -OutputDir Models
It took quite a while to finally generate the folder Models with context class and model class in it.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi I tried to generate model class based on existing view. This is the command I used in PMC:
Scaffold-DbContext "//connectionstring" Oracle.EntityFrameworkCore -schema //schema -table //table -OutputDir Models
It seems like it is working. However it does not generate anything in my solution explorer. I have also tried
dotnet ef dbcontext scaffold
in .Net Core CLI. It did not generate anything as well. Is there anything I missed out?
Below are the dependencies in my project. I am using .NET 8.0, console app.
I changed my command in PMC to
Scaffold-DbContext "//connectionstring" Oracle.EntityFrameworkCore -Table //schemaName.tableName -OutputDir Models
It took quite a while to finally generate the folder Models with context class and model class in it.