.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----对应的文件加名称

 

 

以下是依赖包

 

posted @ 2020-05-13 15:00  王子先生  阅读(604)  评论(2编辑  收藏  举报