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}"

 

转载于:https://www.cnblogs.com/Johnson-zhao/p/9510943.html

你可能感兴趣的:(数据库,json)