.Net Core 6 MySql PowerToolsReadMe.txt not generated corretly
See original GitHub issueDescribe what is not working as expected.
I scaffolded mysql tables into my project, and it did it perfectly and when it finished it showed me some instructions how to register the db service in the Program.cs file which were wrong
Provide steps to reproduce
Please include a complete description or project that I can redo/run to reproduce the issue.
Provide technical details
-
EF Core version in use: (e.g. EF Core 6)
-
Is Handlebars used: no/yes
-
no
-
Is .dacpac used: no/yes
-
EF Core Power Tools version: (found in About dialog - blue questionmark icon on context menu)
-
Database engine: (SQL Server, Azure SQL, Postgres, Oracle, Firebird, SQLite, MySQL)
-
MySQL
-
Visual Studio version: (e.g. Visual Studio 2022)
-
Visual Studio 2022
This is how it should be
var connectionString = builder.Configuration.GetConnectionString("TiCCBoxQA");
builder.Services.AddDbContext<TiCCBoxQAContext>(
opt =>
{
opt.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
});
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Problems related to EF Core Power Tools and MySql ...
Previous use of EF Core Power Tools related to a MySql database generated a working solution some months back. The database has changed...
Read more >Release notes · ErikEJ/EFCorePowerTools Wiki
Default output path to "Models" #1540 · Unneeded files not generated when using mapped entity types with stored procedures #1534 · Update advanced ......
Read more >NET 6 EF Core Power Tools migration -> No database ...
I've set up an class library project in .NET 6.0 (No ASPNET or Webproject) only a blank class library project and generated me...
Read more >7.2 Entity Framework Core Support
MySQL Connector/NET integrates support for Entity Framework Core (EF Core). The requirements and configuration of EF Core depend on the version of ...
Read more >7.2.1 Creating a Database with Code First in EF Core
The Code First approach enables you to define an entity model in code, create a database from the model, and then add data...
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 FreeTop 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
Top GitHub Comments
@ErikEJ Looks like we had missed it. It is now available through our nightly build feed and will later be published as part of Pomelo 6.0.3.
Anyway, it is just some hints to get you started…