You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.0 KiB
Markdown
46 lines
1.0 KiB
Markdown
|
5 years ago
|
# Quick Start on dotnet Core
|
||
|
|
|
||
|
|
* [.NET 5.0 Download](https://dotnet.microsoft.com/download) and install visual studio code
|
||
|
|
* alternative, install [visual studio Community](https://visualstudio.microsoft.com/vs/community/)
|
||
|
|
* [Reference](https://docs.microsoft.com/en-us/dotnet/core/tools/)
|
||
|
|
|
||
|
|
```shell
|
||
|
|
|
||
|
|
// list all templates
|
||
|
|
$ dotnet new --list
|
||
|
|
|
||
|
|
// scaffold a template project
|
||
|
|
$ dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates
|
||
|
|
|
||
|
|
// clean output of project
|
||
|
|
$ dotnet clean
|
||
|
|
|
||
|
|
// build the project
|
||
|
|
$ dotnet build
|
||
|
|
|
||
|
|
// build & run the project
|
||
|
|
$ dotnet run
|
||
|
|
|
||
|
|
|
||
|
|
//
|
||
|
|
$ dotnet add package <packagename>
|
||
|
|
```
|
||
|
|
|
||
|
|
* [Entity Framework Core](https://docs.microsoft.com/en-us/ef/) (EF Core) for SQL
|
||
|
|
* Microsoft.EntityFrameworkCore
|
||
|
|
* Microsoft.EntityFrameworkCore.Relational
|
||
|
|
* Microsoft.EntityFrameworkCore.SqlServer
|
||
|
|
* Microsoft.EntityFrameworkCore.Tools
|
||
|
|
* List of [EF Core Providers](https://docs.microsoft.com/en-us/ef/core/providers/?tabs=dotnet-core-cli)
|
||
|
|
|
||
|
|
```shell
|
||
|
|
$ dotnet ef
|
||
|
|
|
||
|
|
$ dotnet ef database
|
||
|
|
|
||
|
|
$ dotnet ef dbcontext
|
||
|
|
|
||
|
|
$ dotnet ef migrations
|
||
|
|
```
|
||
|
|
|