Polecat 5.19.2
dotnet add package Polecat --version 5.19.2
NuGet\Install-Package Polecat -Version 5.19.2
<PackageReference Include="Polecat" Version="5.19.2" />
<PackageVersion Include="Polecat" Version="5.19.2" />
<PackageReference Include="Polecat" />
paket add Polecat --version 5.19.2
#r "nuget: Polecat, 5.19.2"
#:package Polecat@5.19.2
#addin nuget:?package=Polecat&version=5.19.2
#tool nuget:?package=Polecat&version=5.19.2
Polecat
SQL Server-backed event store and lightweight document database for the Critter Stack.
Polecat is "Marten for SQL Server" — the same API shape, on SQL Server 2025. It leans on the native
json column type, and stores events, streams and documents in pc_-prefixed tables it manages for you.
Install
dotnet add package Polecat
Getting started
builder.Services.AddPolecat(opts =>
{
opts.ConnectionString = connectionString;
opts.DatabaseSchemaName = "myapp";
});
Then take a session and append events:
await using var session = store.LightweightSession();
var streamId = Guid.NewGuid();
session.Events.StartStream(streamId, new OrderPlaced(streamId, "Alice", 100m));
await session.SaveChangesAsync();
var events = await session.Events.FetchStreamAsync(streamId);
Documents work the same way:
session.Store(new Customer { Id = customerId, Name = "Alice" });
await session.SaveChangesAsync();
var customer = await session.LoadAsync<Customer>(customerId);
What's in the box
- Event sourcing — streams keyed by
Guidorstring, live aggregation, snapshots - Projections — inline and async, single-stream, multi-stream, event, flat-table and composite
- Async daemon — high water mark tracking, rebuilds, subscriptions
- Document storage — LINQ querying, patching, bulk insert, soft deletes, optimistic concurrency
- Multi-tenancy — conjoined (per-row) and separate-database, with optional table partitioning
Requirements
- .NET 9 or .NET 10
- SQL Server 2025 (the native
jsontype is used for event data, document bodies and snapshots)
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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 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
- JasperFx (>= 2.53.0)
- JasperFx.Events (>= 2.53.0)
- Microsoft.Data.SqlClient (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- Polly.Core (>= 8.6.5)
- Weasel.SqlServer (>= 9.24.0)
- Weasel.Storage (>= 9.24.0)
-
net9.0
- JasperFx (>= 2.53.0)
- JasperFx.Events (>= 2.53.0)
- Microsoft.Data.SqlClient (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- Polly.Core (>= 8.6.5)
- Weasel.SqlServer (>= 9.24.0)
- Weasel.Storage (>= 9.24.0)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Polecat:
| Package | Downloads |
|---|---|
|
WolverineFx.Polecat
Polecat-backed Persistence for Wolverine Applications |
|
|
Polecat.EntityFrameworkCore
EF Core integration for Polecat event store projections |
|
|
Polecat.AspNetCore
Helpers for Polecat-backed AspNetCore applications |
|
|
Polecat.Mcp
MCP (Model Context Protocol) server tools for Polecat event store introspection |
|
|
CritterWatch.SqlServer
Turnkey CritterWatch monitoring console on SQL Server (Polecat). Option B: shares CritterWatch.Services source, swaps the store binding to Polecat. Ships AddCritterWatch(WebApplicationBuilder)/UseCritterWatch(WebApplication) host bootstrap and the embedded Vue SPA (pack with -p:EmbedFrontend=true), at parity with the Marten CritterWatch package. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Polecat:
| Repository | Stars |
|---|---|
|
JasperFx/wolverine
Supercharged .NET server side development!
|
| Version | Downloads | Last Updated |
|---|---|---|
| 5.19.2 | 92 | 8/21/2026 |
| 5.19.1 | 169 | 8/20/2026 |
| 5.19.0 | 336 | 8/18/2026 |
| 5.18.0 | 159 | 8/18/2026 |
| 5.17.0 | 130 | 8/17/2026 |
| 5.16.0 | 143 | 8/16/2026 |
| 5.15.1 | 150 | 8/15/2026 |
| 5.15.0 | 114 | 8/15/2026 |
| 5.14.0 | 115 | 8/15/2026 |
| 5.13.0 | 119 | 8/14/2026 |
| 5.12.0 | 1,184 | 8/11/2026 |
| 5.11.0 | 335 | 8/8/2026 |
| 5.10.0 | 329 | 8/3/2026 |
| 5.9.1 | 310 | 7/31/2026 |
| 5.9.0 | 180 | 7/30/2026 |
| 5.8.0 | 163 | 7/30/2026 |
| 5.7.1 | 316 | 7/28/2026 |
| 5.7.0 | 2,941 | 7/26/2026 |
| 5.6.0 | 239 | 7/24/2026 |
| 5.5.0 | 738 | 7/22/2026 |