Scaffold-DbContext "Data Source=DESKTOP-DRS4MK9;Initial Catalog=XGTS;User ID=sa;Password=1; " Microsoft.EntityFrameworkCore.SqlServer -OutputDir DBModel(保存到文件)
Scaffold-DbContext "Data Source=DESKTOP-DRS4MK9;Initial Catalog=XGTS;User ID=sa;Password=1; " Microsoft.EntityFrameworkCore.SqlServer -Project DBManage -force(保存到类库)
EF core 生成实体类
使用控制台输出