LocalNorthwindEF 1.2.0
dotnet add package LocalNorthwindEF --version 1.2.0
NuGet\Install-Package LocalNorthwindEF -Version 1.2.0
<PackageReference Include="LocalNorthwindEF" Version="1.2.0" />
<PackageVersion Include="LocalNorthwindEF" Version="1.2.0" />
<PackageReference Include="LocalNorthwindEF" />
paket add LocalNorthwindEF --version 1.2.0
#r "nuget: LocalNorthwindEF, 1.2.0"
#:package LocalNorthwindEF@1.2.0
#addin nuget:?package=LocalNorthwindEF&version=1.2.0
#tool nuget:?package=LocalNorthwindEF&version=1.2.0
Entity Framework Practice Kit With Northwind Sample DB
LocalNorthwindEF is a self contained Northwind db to practice Entity Framework skills. You don't have to connect it to a database first, instead you can just start.
It uses a pre-generated northwind.db sqlite file from northwind-SQLite3 by @jpwhite3.
It creates a new northwind.db file in the build folder if there isn't one. Cleaning or rebuilding the project will reset your database! Copy it out of the build folder first if you want to keep it.
EF Core Power Tools were used to generate all the model & context classes.
Usage
Install the nuget package LocalNorthwindEF.
There is the simple context which contains all the tables:
using var context = new SimpleNorthwindContext();
var customers = context.Customers.ToList();
...
If you want to use the views too, use the extended context:
using var context = new NorthwindContextWithViews();
var products = context.AlphabeticalListOfProducts.ToList();
...
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.EntityFrameworkCore.Sqlite (>= 10.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.