EF core 生成实体类
作者:互联网
使用控制台输出
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(保存到类库)
标签:core,实体类,EF,Scaffold,Initial,Source,Catalog,User,ID 来源: https://www.cnblogs.com/lovelySteelPot/p/14886019.html