question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet linq2db help scaffold throws exception, unable to see command list

See original GitHub issue

This seems weird, but “dotnet linq2db help scaffold” command throws exception in PM, so I’m unable to see the list of available commands 😃 Am I missing something here or is this a bug? Updated linq2db to 4.0.1 and CLI tool installed.

VS2022 17.2.3 and .NET 5, ASP.NET REST API project

Here’s the PM output:

PM> dotnet linq2db help scaffold
dotnet linq2db - Linq To DB command-line utilities. Version: 4.0.1.0

Usage:
        dotnet linq2db scaffold <options>

Options:

=== General : basic options

   -i, --import                              : path to JSON file with scaffold options
         type: string (optional)
         json: not allowed

dotnet : Unhandled exception: The handle is invalid.
At line:1 char:1
+ dotnet linq2db help scaffold
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Unhandled excep...dle is invalid.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
   at System.ConsolePal.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at LinqToDB.CommandLine.HelpCommand.WriteOptionHelp(CliCommand command, Int32 maxOptionNameWidth, String indent, OptionCategory category, CliOption option)
   at LinqToDB.CommandLine.HelpCommand.PrintCommandHelp(CliCommand command, IReadOnlyCollection`1 unknownArgs)
   at LinqToDB.CommandLine.HelpCommand.Execute(CliController controller, String[] rawArgs, Dictionary`2 options, IReadOnlyCollection`1 unknownArgs)
   at LinqToDB.CommandLine.CliController.Execute(String[] args)
   at LinqToDB.Tools.Program.Main(String[] args)

Environment details

linq2db version: 4.0.1 Database Server: PostgreSQL Operating system: Windows 10 Pro, Visual Studio 2022 17.2.3 .NET Framework: .NET 5

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alminolcommented, Jun 15, 2022

Attaching output as workaround: scaffold_help.txt

I suggest that this help output should be put on the documentation page, it’s handy to have it in browser while defining.

1reaction
sdanylivcommented, Jun 15, 2022

Attaching output as workaround: scaffold_help.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Entity Framework | Sequence contains more than one ...
I created my model with dotnet ef cli commands (dbcontext scaffold) I can use my context. But I can't touch any DbSet.. public...
Read more >
LINQ to DB CLI tools
For list of available options, use dotnet linq2db help scaffold command. Usage Examples. Generate SQLite database model in current folder. This command uses ......
Read more >
linq2db 5.2.2
LINQ to DB is the fastest LINQ database access library offering a simple, light, fast, and type-safe layer between your POCO objects and...
Read more >
The dotnet dbcontext Scaffold ef and ...
I am trying to generate my models from the database using Entity framework via reverse engineering. but the command does not work.
Read more >
Is Dapper better than Entity Framework? : r/dotnet
It's an old database already full of stored procedures and queries. It's easier to wrap Dapper around that than scaffolding EF. For me...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found