EF core

Install-Package Microsoft.EntityFrameworkCore.Tools

Install-package Microsoft.EntityFrameworkCore.SqlServer

程序包管理器控制台

Scaffold-DbContext "Server=.;Database=dbname;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

posted @ 2021-06-11 14:56  IWing  阅读(104)  评论(0编辑  收藏  举报