EntityFrameworkCore DBFirst
作者:互联网
需要引用如下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
标签:Scaffold,SqlServer,outputdir,EntityFrameworkCore,Design,DBFirst,Microsoft 来源: https://www.cnblogs.com/feihusurfer/p/10988863.html