反向工程
Scaffold-DbContext “Name=ConnectionStrings:DB”Pomelo.EntityFrameworkCore.MySql -ContextDir Data -OutputDir Entities
数据库更新后的连接
Scaffold-DbContext “Name=ConnectionStrings:DB”Pomelo.EntityFrameworkCore.MySql -ContextDir Data -OutputDir Entities -Force
分层项目中如何在其他类库中生成实体类和数据库上下文
Scaffold-DbContext "Name=ConnectionStrings:DB" Pomelo.EntityFrameworkCore.MySql -ContextDir DAL -OutputDir Entities -Force -Project Models