Hi everyone,
I am running PowerShell in C# code and actually it runs properly. But, when I try to do scaffolding it returns this error:
The command is:
However, when I run the same command in Package Manager console manually, there is no issue at all. This issue is not about what DB type that I use. It can be Oracle or MsSql.
These are packages:
Is there something that I am missing?
I am running PowerShell in C# code and actually it runs properly. But, when I try to do scaffolding it returns this error:
C#:
The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The command is:
Scaffold-DbContext \"Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = XE))); User Id = C##DMT;Password=DMT;\" Oracle.EntityFrameworkCore -contextdir Data -OutputDir Models -context ModelContext -Force;
However, when I run the same command in Package Manager console manually, there is no issue at all. This issue is not about what DB type that I use. It can be Oracle or MsSql.
These are packages:
Is there something that I am missing?
Last edited by a moderator: