.net core

1、安装环境配置

2、实现简单EntityFrameWorkCore

  配置-PM> Install-Package Microsoft.EntityFrameworkCore

    -PM> Install-Package Microsoft.EntityFrameworkCore.SqlServer

  新建项目(个人账户勾选)codefirst

  添加相应models control 

  找到control 打开命令窗口

  dotnet ef migrations add Initial

  dotnet ef database update

 

https://docs.asp.net/en/latest/tutorials/first-mvc-app/adding-model.html(原文)

http://www.cnblogs.com/dotNETCoreSG/p/aspnetcore-2_4_4-adding-model.html(原文)

posted on 2016-07-28 16:58  月&&生  阅读(190)  评论(0编辑  收藏  举报