DotNet/Asp.Net/EF Core
# install .Net Core 1.0 on Ubuntu 16.04
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list' sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 sudo apt-get update sudo apt-get install dotnet-dev-1.0.0-preview2-003121 sudo apt-get install dotnet-hostfxr-1.0.2-beta-000583-00
# create a web app
mkdir hwweb cd hwweb dotnet new -t web git init . dotnet restore dotnet run
# ef commands
dotnet ef migrations add Initial
dotnet ef database update
posted on 2016-07-23 20:46 Jeffrey F. 阅读(271) 评论(0) 编辑 收藏 举报