asp.net core ef Scaffold-DbContext

NuGet 管理控制台执行下列命令,输出DB first code

        Scaffold-DbContext "server=your database server;database=your database name;integrated security=SSPI;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
        Scaffold-DbContext "server=your database server;database=your database name;integrated security=SSPI;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Force

 

asp.net core ef Scaffold-DbContext

上一篇:初阶项目一-集成一套linux系统:红帽系统,LVM分区,Apache服务,MySQL服务,数据定时备份脚本


下一篇:MySQL常用命令