DotNet/Asp.Net/EF Core

2019/7/21 15:26:14 人评论 次浏览 分类:学习教程

原文链接:http://www.cnblogs.com/jeffreyf/p/5654990.html

# 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

 

转载于:https://www.cnblogs.com/jeffreyf/p/5654990.html

相关资讯

    暂无相关的资讯...

共有访客发表了评论 网友评论

验证码: 看不清楚?
    -->