时间:2021-07-01 10:21:17 帮助过:24人阅读
需要引用如下nuget包
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.SqlServer
Microsoft.EntityFrameworkCore.Tools
Microsoft.EntityFrameworkCore.Design
Microsoft.EntityFrameworkCore.SqlServer.Design
控制台执行命令
Scaffold-dbcontext "Server=.;Database=SingleOneAuth;User ID=sa;Password=******;Trusted_Connection=True;MultipleActiveResultSets=true" Microsoft.EntityFrameworkCore.SqlServer -outputdir Models
EntityFrameworkCore DBFirst
标签:out pass multiple tput sig user lse model fir