.net core 3.1使用命令自动生成MySQL表对应的实体类

Scaffold-DbContext "Server=127.0.0.1;Database=printbackstage; User ID=root;Password=root;port=3306;CharSet=utf8;pooling=true;Allow User Variables=True;" Pomelo.EntityFrameworkCore.MySql -OutputDir Entitys

Entitys----对应的文件加名称

以下是依赖包

原文地址:https://www.cnblogs.com/pang572936554/p/12882400.html