Skip to main content

Installation

Install Entity Framework Core

When working with EF Core, you will want to install the correct package for the Entity Framework Core database provider you want to target in your project. Since this demo project is regarding SQLite, I am going to install the EF Core that supports SQLite.

Add NuGet package reference

Install-Package Microsoft.EntityFrameworkCore.Sqlite

A new file will be created in the project with the following content

Klassen erstellen

Add-Migration InitialCreate
Update-Database

Add-Migration <NAME> //Sample: AddExecuteCounterCreate

Update-Database