- Prerequisites: Visual Studio 2019 version 16.3+ with .NET Core cross-platform development.
- Install Entity Framework Core.
Install-Package Microsoft.EntityFrameworkCore.Sqlite
- Create the database after having Model.cs.
Install-Package Microsoft.EntityFrameworkCore.Tools Add-Migration InitialCreate Update-Database
- Debugging as a console app.
- Software design: Context.
- In EF Core, the DB context is constructed in a way of
- Encapsulate data models as DbSet, to query and save instances of data entities.
- Config DB (Path, Database, Strategy etc.), for example SQLite, in the constructor for each of the contexts created.
- and then expose CRUD interfaces in DB context to developers of LINQ queires.