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.

.Net Core 6 MySql PowerToolsReadMe.txt not generated corretly

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
lauxjpncommented, Jul 27, 2022

@lauxjpn did you not add this for minimal APIs?

@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.

1reaction
ErikEJcommented, Jul 21, 2022

Anyway, it is just some hints to get you started…

Read more comments on GitHub >

github_iconTop 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 >

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