KitchenPC.DB 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package KitchenPC.DB --version 1.1.0
                    
NuGet\Install-Package KitchenPC.DB -Version 1.1.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="KitchenPC.DB" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KitchenPC.DB" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="KitchenPC.DB" />
                    
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 KitchenPC.DB --version 1.1.0
                    
#r "nuget: KitchenPC.DB, 1.1.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 KitchenPC.DB@1.1.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=KitchenPC.DB&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=KitchenPC.DB&version=1.1.0
                    
Install as a Cake Tool

What is KitchenPC?

KitchenPC is a free, open-source framework written in C# for working with recipes, shopping lists, and menus. It provides a standardized data model for representing normalized ingredient and recipe information, and allows ingredient usage to be aggregated across recipes automatically. The core KitchenPC framework includes:

  1. Base classes for describing and working with core recipe-related concepts.
  2. A recipe modeling engine capable of building sets of recipes that efficiently use a set of ingredients and amounts.
  3. A natural language parser which can convert human input ("a dozen eggs") to a normalized ingredient usage structure (whole eggs: 12)
  4. A categorization engine which can take recipe objects and catagorize them as breakfast, lunch, dinner or dessert. This engine can also derive nutrional information based on USDA data, a taste profile (sweet, savory, spicy, mild) based on ingredients and amounts used, dietary flags (vegetarian, gluten-free, low-calorie, etc) and other aspects of the recipe.
  5. An extensible framework to define how data is loaded and saved to a persistence mechanism, such as a SQL database or full-text search engine.

How To Get Started

Getting started is simple, and data can be loaded locally from an XML file for testing. Example applications and a small static data snapshot are available in the KitchenPC Samples repository.

The best way to get up and running is to read the blog post titled Getting Started with KitchenPC which includes an introduction to core concepts as well as several samples.

  1. Getting Started
  2. Provisioning a Database
  3. Logging
  4. Creating a Recipe

Building and Testing

Install the .NET 10 SDK, then restore, build, and test from the repository root:

dotnet restore src/core.slnx
dotnet build src/core.slnx --configuration Release --no-restore
dotnet test src/UnitTests/UnitTests.csproj --configuration Release --no-build --no-restore

The build includes KitchenPC.Core, KitchenPC.DB, and the unit tests.

Database Schema Naming

The PostgreSQL persistence adapter uses shoppingingredients as the physical table name for the ingredient catalog. This legacy name is retained for compatibility with the KitchenPC website. Public domain types and provisioning data continue to use the simpler Ingredient and Ingredients terminology; those names describe application data rather than database tables.

DBContext.InitializeStore() recreates the KitchenPC schema and deletes existing KitchenPC data. Use it only with a new database or when replacing all existing data is intentional. See the KitchenPC Samples repository for a PostgreSQL initializer and a small sample dataset.

Optional DBContext Capabilities

DBContext initializes its autocomplete index, ingredient-text parser, and recipe-modeler graph by default. Applications that do not use every feature can select only the in-memory capabilities they need while retaining ordinary database-backed operations:

var context = DBContext.Configure
   .Adapter(/* database adapter configuration */)
   .Capabilities(DBContextCapabilities.IngredientParsing)
   .Identity(() => AuthIdentity.Anonymous)
   .Create();

The available flags are IngredientAutocomplete, IngredientParsing, and RecipeModeler. DBContextCapabilities.All is the default for backward compatibility. Calling an API whose capability was not enabled throws ContextCapabilityNotEnabledException. Recipe aggregation uses the in-memory graph when the modeler is enabled and falls back to loading recipes from the database when it is disabled.

See DBContext capability profiles for capability requirements and sample-data startup and memory measurements.

Packages and Releases

Every push and pull request builds and tests the solution, then creates matching prerelease packages for CI validation. Version tags publish KitchenPC.Core and KitchenPC.DB to NuGet with the same version. For example:

git tag -a v1.0.0 -m "KitchenPC 1.0.0"
git push origin v1.0.0

NuGet package versions are immutable. Always increment the version for a subsequent release.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
2.1.1 139 11/11/2026
2.1.0 98 11/11/2026
2.0.0 233 8/28/2026
1.1.0 144 8/28/2026
1.0.1 194 8/23/2026
1.0.0 185 8/19/2026