Setup .net core EF

.net Core EF Inistall

• At menu bar Tools -> NuGet Package Manager -> Package Manager Console

• Run Install-Package Microsoft.EntityFrameworkCore.SqlServer

• Run Install-Package Microsoft.EntityFrameworkCore.Tools –Pre

• Run Install-Package Microsoft.EntityFrameworkCore.SqlServer.Design

• Open Project.json, locate the Tools section and add the config as is shown below

 

• Reverse engineer your model by command

Run below command at Package Manager Console

Scaffold-DbContext "{ Your DB connect string }" Microsoft.EntityFrameworkCore.SqlServer -O "{Entity Model Folder}"

 

posted @ 2018-08-21 13:59  Johnson.桥上  阅读(205)  评论(0编辑  收藏  举报