dotnet core
parent
175ae97e4b
commit
b3f0ccd2d5
@ -0,0 +1,45 @@
|
|||||||
|
# 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
|
||||||
|
```
|
||||||
|
|
||||||
Loading…
Reference in New Issue