The program need to get users table and its values, then send the information to another tool using webapi.
Every customer will have different user table name and different data name. How could I possibly do that?
Hi everyone,
Is it possible to do scaffolding after install our program and run it? Is using powershell right way to go to do this? Or what else can I do?
I need any advice of you.
Thank you.
Actually, I am not sure if this is a good practise to do scaffolding with powershell in code.
The need is doing scaffolding after installing the program and running it. Using Powershell is just a possible option for me to do.
Hi,
I need to do scaffolding in code. To do this I wrote this method;
public string RunScript(string scriptText)
{
string dir = @"C:\Users\demetsen\source\repos\ScaffoldingInCode\ScaffoldingInCode";
Directory.SetCurrentDirectory(dir);
Runspace...
The result is the same with the powershell. There are no warnings or errors.
PS C:\Users\dmt> dotnet build C:\Users\dmt\source\repos\ScaffoldingInCode\ScaffoldingInCode\ScaffoldingInCode.csproj
.NET için Microsoft (R) Build Engine sürüm 17.0.0+c9eb9dd64
Telif Hakki (C) Microsoft Corporation...
PM> dotnet build C:\Users\dmt\source\repos\ScaffoldingInCode\ScaffoldingInCode\ScaffoldingInCode.csproj
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
All projects are up-to-date for...
Actually, this not about the DB type. Even if I use Sql Server other than Oracle, it gives the same error.
I will probably open a diffirent thread. Thank you.
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 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...
Thanks a lot for your response.
I updated package versions like this and it worked:
But this time it gives this error:
"Scaffold-DbContext" command is working when do this manually with Packace Manager Console.
Scaffold-DbContext "Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL =...
Hi,
I need to run powershell command in C# code for a scaffolding. This is a .NET Entity Framework Core Console project. I will take a Database string from a user and use DB First Method to link the database. Is this possible to do this?
This is my code:
This is the output that I get...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.