dotnet linq2db help scaffold throws exception, unable to see command list
See original GitHub issueThis 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:
- Created a year ago
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I suggest that this help output should be put on the documentation page, it’s handy to have it in browser while defining.
Attaching output as workaround: scaffold_help.txt