-
-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Error trying to create model from database #2246
Comments
Can you share the .dacpac ? (privately) |
Yes, should I forward it to your email address? |
@JulianoAlexandre Yes, you can do that |
@JulianoAlexandre Could you PLEASE explain how to trigger the error then (not how to work around it) - I do not understand the circumstances. |
After right click in the Database1 project, selecting "Create EF Core DbContext...", I choose the project, in this case, "ClassLibrary1". It directly creates the efpt.config.json file with default values, without showing me the popup to select the tables and parameters I need. The error I mentioned is shown here, in the Extensions. Can you understand the steps I took for this to happen? |
@JulianoAlexandre Yes,I can now. Will investigate |
I was not able to repro your exact issue, butI implemented a fix for some related issues in the latest daily build, would be grateful if you could try it out. |
Hi Erik, thank you, everything is working fine with the 2.6.200 version. :) |
Thanks for confirming- I will Update the MarketPlace version with this Bug fix soon |
I update the extension with the version 2.6.199, now when I try create EF Core DbContext from my database project, I am receiving this error message: "System.NullReferenceException: Object reference not set to an instance of an object.
at async Task<List> EFCorePowerTools.Handlers.ReverseEngineer.ReverseEngineerHandler.GetTablesAsync(DatabaseConnectionModel dbInfo, CodeGenerationMode codeGenerationMode, SchemaInfo[] schemas)
at async Task EFCorePowerTools.Handlers.ReverseEngineer.ReverseEngineerHandler.LoadDataBaseObjectsAsync(ReverseEngineerOptions options, DatabaseConnectionModel dbInfo, Tuple<List, string> namingOptionsAndPath) x 2
at async Task EFCorePowerTools.Handlers.ReverseEngineer.ReverseEngineerHandler.ReverseEngineerCodeFirstAsync(Project project, string optionsPath, bool onlyGenerate, bool fromSqlProj)"
Simple tables are in my db project, any try to create it generate the error.
My Visual Studio 2022 17.9.5
Database engine: Azure SQL
EF Core version 8.0.2
Is Handlebars templates used: no
Is T4 templates used: no
Is a SQL Server .dacpac: yes
The text was updated successfully, but these errors were encountered: