Search results for query: *

  1. D

    Scaffolding after install the program

    yes, the data are for example user email, name etc.
  2. D

    Scaffolding after install the program

    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?
  3. D

    Scaffolding after install the program

    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.
  4. D

    Run Scaffolding Command in C# Code with Powershell Runspace

    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.
  5. D

    Run Scaffolding Command in C# Code with Powershell Runspace

    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...
  6. D

    The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program.

    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...
  7. D

    The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program.

    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...
  8. D

    The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program.

    syntax: "dotnet ef dbcontext scaffold \"Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = XE))); User Id = ***;Password=***;\" Oracle.EntityFrameworkCore -p...
  9. D

    The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program.

    Thank you. But I Tried this one too: dotnet ef dbcontext scaffold "Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = XE))); User Id = ***;Password=***;" Oracle.EntityFrameworkCore -contextdir Data...
  10. D

    Cannot load PowerShell snap-in Microsoft.PowerShell.Diagnostics

    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.
  11. D

    Cannot load PowerShell snap-in Microsoft.PowerShell.Diagnostics

    Yes, I am running as Admin
  12. D

    The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program.

    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...
  13. D

    Cannot load PowerShell snap-in Microsoft.PowerShell.Diagnostics

    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 =...
  14. D

    Cannot load PowerShell snap-in Microsoft.PowerShell.Diagnostics

    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...
Back
Top Bottom