在项目目录下打开powershell运行一下命令(db first)
dotnet ef dbcontext scaffold "server=localhost;uid=root;pwd=;database=instant_message" Pomelo.EntityFrameworkCore.Mysql -f -o Models
在项目目录下打开powershell运行一下命令(db first)
dotnet ef dbcontext scaffold "server=localhost;uid=root;pwd=;database=instant_message" Pomelo.EntityFrameworkCore.Mysql -f -o Models