LocalNorthwindEF 1.2.0

dotnet add package LocalNorthwindEF --version 1.2.0
                    
NuGet\Install-Package LocalNorthwindEF -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LocalNorthwindEF" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LocalNorthwindEF" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="LocalNorthwindEF" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LocalNorthwindEF --version 1.2.0
                    
#r "nuget: LocalNorthwindEF, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LocalNorthwindEF@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LocalNorthwindEF&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=LocalNorthwindEF&version=1.2.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 109 4/7/2026
1.1.3 97 4/7/2026
1.1.2 99 4/7/2026
1.1.1 100 4/7/2026
1.1.0 278 5/18/2025