码迷,mamicode.com
首页 > Web开发 > 详细

Setup .net core EF

时间:2018-08-21 15:15:42      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:.json   serve   project   sig   command   context   add   man   sign   

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

 

Setup .net core EF

标签:.json   serve   project   sig   command   context   add   man   sign   

原文地址:https://www.cnblogs.com/Johnson-zhao/p/9510943.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!