1. Rider EF Core - Migrations#

Install Microsoft.EntityFrameworkCore.Design, which requires Microsoft.EntityFrameworkCore.Relational, so you need install both. I think the reason is I use MySQL: Pomelo.EntityFrameworkCore.MySql not Microsoft.EntityFrameworkCore.SqlServer which is for SqlServer.

Note that because the dependency of Pomelo.EntityFrameworkCore.MySql , the version of design and relational an other should be <= 1.xxxx. So I choose 9.0.0-preview.1.24081.2

Everytime update database with migrations, there is warning:

The Entity Framework tools version '8.0.7' is older than that of the runtime '9.0.0-preview.1.24081.2'. Update the tools for the latest features and bug fixes. See https://aka.ms/AAc1fbw for more information.

To resolve this issue:

❯ dotnet tool update --global dotnet-ef
Tool 'dotnet-ef' was reinstalled with the stable version (version '8.0.7').

~
❯ dotnet tool update --global dotnet-ef --version 9.0.0-preview.1.24081.2
Tool 'dotnet-ef' was successfully updated from version '8.0.7' to version '9.0.0-preview.1.24081.2'.