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.

EF Core 6 Reverse engineer - Table list error

See original GitHub issue

Describe what is not working as expected.

NET5 works fine. I have ported everything to NET6 and now I am trying to run ReverseEngineer, but I am getting this error:

System.Exception: Table list error: 
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
   at ServiceProvider RevEng.Core.ServiceProviderBuilder.Build(ReverseEngineerCommandOptions options) in C:/Code/EFCorePowerTools/src/GUI/RevEng.Core/ServiceProviderBuilder.cs:line 198
   at new RevEng.Core.TableListBuilder(int databaseType, string connectionString, SchemaInfo[] schemas) in C:/Code/EFCorePowerTools/src/GUI/RevEng.Core/TableListBuilder.cs:line 35
   at int efreveng.Program.Main(string[] args) in C:/Code/EFCorePowerTools/src/GUI/efreveng/Program.cs:line 28

   at List<TableModel> EFCorePowerTools.Handlers.ReverseEngineer.ResultDeserializer.BuildTableResult(string output)
   at async Task<List<TableModel>> EFCorePowerTools.Handlers.ReverseEngineer.EfRevEngLauncher.GetTablesInternalAsync(string arguments)
   at async Task<List<TableModel>> EFCorePowerTools.Handlers.ReverseEngineer.EfRevEngLauncher.GetTablesAsync(string connectionString, DatabaseType databaseType, SchemaInfo[] schemas)
   at async Task<List<TableModel>> EFCorePowerTools.Handlers.ReverseEngineer.TableListBuilder.GetTableDefinitionsAsync(CodeGenerationMode codeGenerationMode)
   at async Task<List<TableModel>> EFCorePowerTools.Handlers.ReverseEngineer.ReverseEngineerHandler.GetTablesAsync(DatabaseConnectionModel dbInfo, CodeGenerationMode codeGenerationMode, SchemaInfo[] schemas)
   at async Task<bool> EFCorePowerTools.Handlers.ReverseEngineer.ReverseEngineerHandler.LoadDataBaseObjectsAsync(ReverseEngineerOptions options, DatabaseConnectionModel dbInfo, Tuple<List<Schema>, string> namingOptionsAndPath)
   at async Task EFCorePowerTools.Handlers.ReverseEngineer.ReverseEngineerHandler.ReverseEngineerCodeFirstAsync(Project project, string optionsPath, bool onlyGenerate)

Please include a complete description that I can redo to reproduce the issue.

Further technical details

EF Core version in use: (e.g. EF Core 5) EF Core 6

EF Core Power Tools version: (found in About dialog - blue questionmark icon on context menu) 2.5.832.0

Database engine: (SQL Server, Azure SQL, Postgres, Oracle, Firebird, SQLite, MySQL) Oracle

Visual Studio version: (e.g. Visual Studio 2019 16.11) Visual Studio 2019 16.11.7

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikEJcommented, Dec 7, 2021

@tomasfil Added to latest daily build

0reactions
ErikEJcommented, Dec 7, 2021

Build .857 is up now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scaffolding (Reverse Engineering) - EF Core
Reverse engineering is the process of scaffolding entity type classes and a DbContext class based on a database schema.
Read more >
EF core Invalid column name after reverse engineering ...
I have an API using ASP.NET Core 6 & EF6 and I reverse engineered my database (SQL Server) using the EF Core Powers...
Read more >
Entity Framework Core SQL Server reverse engineering ...
This post lists some of known issues you may encounter with Entity Framework Core Power Tools SQL Server reverse engineering or when running ......
Read more >
Generating a model from an existing database
In this approach, you reverse-engineer a model from an existing database, resulting in the generation of an EDMX file that contains the model ......
Read more >
Scaffolding Or Reverse Engineering - Database
Scaffolding Or Reverse Engineering. ODP.NET EF Core supports scaffolding the following tables and views: Relational tables and views. Materialized views.
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