Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql 0.1.5

dotnet add package Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql --version 0.1.5
                    
NuGet\Install-Package Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql -Version 0.1.5
                    
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="Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql" Version="0.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql" Version="0.1.5" />
                    
Directory.Packages.props
<PackageReference Include="Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql" />
                    
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 Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql --version 0.1.5
                    
#r "nuget: Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql, 0.1.5"
                    
#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 Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql@0.1.5
                    
#: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=Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql&version=0.1.5
                    
Install as a Cake Addin
#tool nuget:?package=Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql&version=0.1.5
                    
Install as a Cake Tool

Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql

Self-contained PostgreSQL storage for Krumb.MockingToolbox - the recommended package for most users.

Migrations are pre-generated and baked directly into this package. Your app never needs EF Tools, never generates a migration file, and never runs dotnet ef at all - app.UseMockingToolbox() applies them automatically at startup.

Quick start

services.AddMockingToolbox(options =>
{
    options.IsEnabled = environment.IsDevelopment() || environment.IsStaging();
    options.DashboardPath = "/mocking";
    options.UsePostgreSql(connectionString);
});
app.UseMockingToolbox();

That's the entire setup. No migration files, no EF Tools package reference, nothing else required in your app.

Why this needs its own package instead of being generic

EF Core migrations are provider-specific - a migration generated for SQL Server won't run against PostgreSQL. Shipping pre-baked migrations for "any provider" isn't possible, so this package exists specifically for PostgreSQL via Npgsql. If you're on a different database, use Krumb.MockingToolbox.EntityFrameworkCore instead, which is provider-agnostic but requires you to generate your own migrations.

Documentation

Full source and configuration reference: GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
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
0.1.5 107 7/22/2026
0.1.4 103 7/22/2026