Zeeq.Biome.EntityFrameworkCore
1.2.0
dotnet add package Zeeq.Biome.EntityFrameworkCore --version 1.2.0
NuGet\Install-Package Zeeq.Biome.EntityFrameworkCore -Version 1.2.0
<PackageReference Include="Zeeq.Biome.EntityFrameworkCore" Version="1.2.0" />
<PackageVersion Include="Zeeq.Biome.EntityFrameworkCore" Version="1.2.0" />
<PackageReference Include="Zeeq.Biome.EntityFrameworkCore" />
paket add Zeeq.Biome.EntityFrameworkCore --version 1.2.0
#r "nuget: Zeeq.Biome.EntityFrameworkCore, 1.2.0"
#:package Zeeq.Biome.EntityFrameworkCore@1.2.0
#addin nuget:?package=Zeeq.Biome.EntityFrameworkCore&version=1.2.0
#tool nuget:?package=Zeeq.Biome.EntityFrameworkCore&version=1.2.0
Zeeq Biome
Terse, readable test setup for .NET. A biome is your app's entity graph in miniature: just the rows one test needs, wired together correctly. You declare one blueprint per entity type that produces valid, uninteresting defaults. Tests then build scenarios as short fluent chains that mention only the properties under test. Parents and children are typed, numbering and ordering come from sequences, the clock is frozen, and persistence is pluggable (EF Core or none). Defaults never overwrite a value the test set.
// Example from zeeq-app repo (for zeeq.ai)
await TestBiome.Start(_db, out var seed)
.AddCodeRepository(out var repo)
.AddPullRequest(
out var pr,
p => p.State = PullRequestState.Closed
) // 👆 the only property under test for this scenario
.BuildAsync();
// Now test our query, behavior, etc. that is dependent on `PullRequest.State`.
💡 Steal this idea; point your agent at https://zeeq-ai.github.io/zeeq-biome/llms.txt and ask it to build it for TypeScript, Rust, Go, etc.
Install
dotnet add package Zeeq.Biome
dotnet add package Zeeq.Biome.EntityFrameworkCore # optional: save with a DbContext
Starting with version 1.2.0, both packages target .NET 8, .NET 9, .NET 10, and .NET 11. The core package has no dependencies. The EF integration uses the matching EF Core major, with minimums 8.0.11, 9.0.0, 10.0.0, and 11.0.0 for .NET 8, 9, 10, and 11 respectively.
Consumers need a C# 14 compiler for core extension-block APIs, including APIs used by generated graft methods. The .NET 10 SDK / Roslyn 5 is the minimum for consumers targeting .NET 8, 9, or 10; target .NET 11 with the .NET 11 SDK. Build this repository with SDK 11.0.100 / C# 15. Graft methods generated for consumers are regular extension methods. Seed examples using Guid.CreateVersion7 require .NET 9+; on .NET 8, use your app's UUIDv7 helper. Blueprint factories can use ctx.NewId on all targets.
Ordinary-entity input blueprints and typed child inputs are available in Zeeq.Biome 1.1.0 and later. Use the matching version of Zeeq.Biome.EntityFrameworkCore when needed.
For coding agents: start with the API cheat sheet (web) for a quick start. The full docs are indexed for LLMs at https://zeeq-ai.github.io/zeeq-biome/llms.txt.
Why Biome
Tests make expected behavior concrete, and they give an agent a way to check its changes. But the signal gets buried in setup: IDs, required fields, tenant links and timestamps repeated in every test. That fills a reader's (or an agent's) context with routine wiring that doesn't explain why the test exists. Different teammates and agents also write that setup differently, so helpers drift across the codebase.
Take a multi-tenant school system. A district report test needs one district with two schools. Here is the same setup with and without Biome:
❌ Without Biome
Typical test setup code will be repetitive, verbose, and obfuscate the scenario under test:
var now = DateTimeOffset.UtcNow;
var district = new District
{
Id = $"dist_{Guid.CreateVersion7():N}",
Name = "Riverside Unified",
TimeZoneId = "America/Chicago",
CreatedAtUtc = now,
UpdatedAtUtc = now,
};
var northHigh = new School
{
Id = $"sch_{Guid.CreateVersion7():N}",
DistrictId = district.Id,
Name = "North High",
Code = "NH",
CreatedAtUtc = now,
UpdatedAtUtc = now,
};
var southHigh = new School
{
Id = $"sch_{Guid.CreateVersion7():N}",
DistrictId = district.Id,
Name = "South High",
Code = "SH",
CreatedAtUtc = now,
UpdatedAtUtc = now,
};
_db.AddRange(district, northHigh, southHigh);
await _db.SaveChangesAsync();
_db.ChangeTracker.Clear();
Biome provides the framework and structure to remove boilerplate, improve its reuse, and make tests more readable and maintainable.
✅ With Biome
await TestBiome.Start(_db, out _)
.AddDistrict(out var district)
.AddSchools(out var schools, 2)
.BuildAsync();
_db.ChangeTracker.Clear();
Both build the same graph. With Biome, the IDs, tenant links and timestamps live once in the blueprints, so the test reads as the scenario. The savings compound as the suite grows: less to write, less to review, less agent context spent on routine values.
TestBiome, AddDistrict and AddSchools are helpers you define for your app. See the introduction for the full case.
The generator removes the glue
Declare a blueprint once and annotate the catalog with [BiomeGraft]. The source generator emits typed AddX / AddXs methods for each blueprint, so you don't hand-write extension methods or pass blueprints around:
[BiomeGraft]
public static class Blueprints
{
public static readonly Blueprint<ZeeqSeed, CodeRepository> Repository = /* … */;
public static readonly ChildBlueprint<ZeeqSeed, CodeRepository, PullRequestRecord> PullRequest = /* … */;
}
// Generated: AddRepository, AddRepositories, AddPullRequest, AddPullRequests
await TestBiome.Start(out _)
.AddRepository(out var repo)
.AddPullRequest(out var pr) // compiles only after a repository: parent types are enforced
.BuildAsync();
- A child graft compiles only when the current anchor is its parent type, so a wrong chain fails at compile time.
[Graft("Name", Plural = "Names")]renames the methods and[NoGraft]skips a member.- Named multi-step chains stay visible as scenario helpers.
See Generated grafts and scenario helpers.
Examples
Eight complete domains live in tests/Zeeq.Biome.Tests, each with a seed, blueprints and tests that run in CI. A few highlights:
Fan-out per parent (Learning): six levels in six lines.
await TestBiome.Start(out _)
.AddSchools(out var schools, 2)
.AddCourses(out _, 2) // 2 per school
.AddSections(out var sections, 2)
.AddEnrollments(out var enrollments, 3)
.AddAssignments(out var assignments, 2)
.AddSubmissions(out var submissions, 1)
.BuildAsync();
Sequences and sibling branches (Board): ranks continue per column; .Under jumps back to an earlier parent.
await TestBiome.Start(out _)
.AddBoard(out var board)
.AddColumns(out var columns, 2)
.AddCards(out var cards, 2) // ranks a, aa | a, aa
.Under(columns[0])
.AddCard(out var next) // rank aaa: resumes this column
.BuildAsync();
Scenario helper (CodeReviews): a named chain, one line in the test.
await TestBiome.Start(out _, store).AddLockedReview(out var activeLock).BuildAsync();
Call site wins (CodeReviews): explicit values are kept and reserved from the sequence.
.AddPullRequests(out var prs, _ => { }, pr => pr.Number = 1, pr => pr.Number = 3, _ => { })
// numbers: 2, 1, 3, 4
Also: Membership (aggregates, derived expiry), Commerce (transient inputs), CustomSeed (global defaults, save hooks), ProjectManagement and DocsIngest.
For API shapes, the pipeline order and common errors, use the cheat sheet: in the repo or on the docs site. Guides and walkthroughs of every example are in the docs.
Troubleshooting: dotnet exits with 137 under mise
If you install .NET with mise, dotnet build or dotnet test can die with Killed: 9 / exit code 137 (SIGKILL). macOS kills the shared dotnet host binary because its code signature is invalid. Re-sign it ad hoc:
sudo codesign --force --sign - ~/.local/share/mise/dotnet-root/dotnet
Re-run it if a later mise or SDK update replaces the binary.
Versioning and contributing
- Semantic Versioning, computed from Conventional Commits:
feat:→ minor,fix:→ patch,feat!:/BREAKING CHANGE:→ major. - Releases are cut by the Release workflow (GitHub Actions → stable or rc). It publishes both packages to nuget.org and tags
vX.Y.Z. - Build and test:
dotnet build zeeq-biome.slnxthendotnet test --solution zeeq-biome.slnx. Format:dotnet csharpier format . - Agent skills for writing tests and blueprints:
.agents/skills. - License: MIT.
| Product | Versions 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 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. net11.0 is compatible. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.0)
- Zeeq.Biome (>= 1.2.0)
-
net11.0
- Microsoft.EntityFrameworkCore (>= 11.0.0)
- Zeeq.Biome (>= 1.2.0)
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.11)
- Zeeq.Biome (>= 1.2.0)
-
net9.0
- Microsoft.EntityFrameworkCore (>= 9.0.0)
- Zeeq.Biome (>= 1.2.0)
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 | 202 | 11/16/2026 |
| 1.1.0 | 638 | 10/12/2026 |
| 1.1.0-rc.2 | 75 | 10/12/2026 |
| 1.1.0-rc.1 | 75 | 10/12/2026 |
| 1.0.1 | 116 | 10/12/2026 |
| 1.0.0 | 120 | 10/12/2026 |