1、MySQL数据库的使用
Scaffold-DbContext “Name=ConnectionStrings:DB”Pomelo.EntityFrameworkCore.MySql -ContextDir DAL -OutputDir Entities -Force Scaffold-DbContext "Server=192.168.188.83;Database=pms;Uid=testuser;Pwd=123;" Pomelo.EntityFrameworkCore.MySql -ContextDir DAL -OutputDir Entities -Force -Project Models -StartupProject App.Models
2、MSSQL数据库的使用
Scaffold-DbContext 'server=192.168.188.34;uid=sa;pwd=saoa1,.;database=carinfo' Microsoft.EntityFrameworkCore.SqlServer -ContextDir DAL -OutputDir Entities -Force -Project Models -StartupProject Models