Trellis.EntityFrameworkCore
3.0.0-alpha.526
dotnet add package Trellis.EntityFrameworkCore --version 3.0.0-alpha.526
NuGet\Install-Package Trellis.EntityFrameworkCore -Version 3.0.0-alpha.526
<PackageReference Include="Trellis.EntityFrameworkCore" Version="3.0.0-alpha.526" />
<PackageVersion Include="Trellis.EntityFrameworkCore" Version="3.0.0-alpha.526" />
<PackageReference Include="Trellis.EntityFrameworkCore" />
paket add Trellis.EntityFrameworkCore --version 3.0.0-alpha.526
#r "nuget: Trellis.EntityFrameworkCore, 3.0.0-alpha.526"
#:package Trellis.EntityFrameworkCore@3.0.0-alpha.526
#addin nuget:?package=Trellis.EntityFrameworkCore&version=3.0.0-alpha.526&prerelease
#tool nuget:?package=Trellis.EntityFrameworkCore&version=3.0.0-alpha.526&prerelease
Trellis.EntityFrameworkCore
EF Core conventions, interceptors, and Result-based persistence helpers for Trellis aggregates, value objects, and Maybe<T>.
This package opts out of NativeAOT and trimming because EF Core model building, change tracking, and query translation rely on runtime reflection.
Installation
dotnet add package Trellis.EntityFrameworkCore
Quick Example
using Microsoft.EntityFrameworkCore;
using Trellis;
using Trellis.EntityFrameworkCore;
protected override void ConfigureConventions(
ModelConfigurationBuilder configurationBuilder) =>
configurationBuilder.ApplyTrellisConventionsFor<AppDbContext>();
Maybe<Customer> customer =
await dbContext.Customers.FirstOrDefaultMaybeAsync(cancellationToken);
Result<int> saved =
await dbContext.SaveChangesResultAsync(cancellationToken);
Key Features
- Convention-based mapping for Trellis scalar and composite value objects.
- Source-generated discovery for
Maybe<T>properties and[OwnedEntity]value objects. - Query helpers for presence, equality, predicates, and ordering over
Maybe<T>. - Inspect
Maybe<T>storage strategies, tables/schemas, all owned columns, and known convention reasons withGetMaybePropertyMappings()/ToMaybeMappingDebugString(). - Result-returning save helpers and idempotent unique-key inserts.
- Typed seek pagination through
SeekDefinitionandToPageAsync. EfUnitOfWork<TContext>integration for mediator-owned commits.
Register AddTrellisInterceptors() when queries or updates rely on Trellis Maybe<T>, scalar-value, timestamp, or ETag behavior. Under AddTrellisUnitOfWork<TContext>(), repositories stage changes and the pipeline owns the commit.
Documentation
| Product | Versions 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. |
-
net10.0
- Mediator.Abstractions (>= 3.0.2)
- Microsoft.EntityFrameworkCore (>= 10.0.12)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- OpenTelemetry.Api (>= 1.18.0)
- Trellis.Authorization (>= 3.0.0-alpha.526)
- Trellis.Core (>= 3.0.0-alpha.526)
- Trellis.Mediator (>= 3.0.0-alpha.526)
- Trellis.Persistence.Abstractions (>= 3.0.0-alpha.526)
- Trellis.Primitives (>= 3.0.0-alpha.526)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Trellis.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
Trellis.ServiceDefaults
Opinionated service composition defaults for Trellis web services. Provides a tiered builder that wires ASP integration, Mediator behaviors, FluentValidation, resource authorization, actor providers, and EF Core Unit of Work in canonical order. |
|
|
Trellis.EntityFrameworkCore.Outbox
Transactional outbox for Trellis. Atomically captures aggregate domain events to an EF Core table in the same transaction as the aggregate change, then relays them to Trellis domain-event handlers — durable, at-least-once, in-process dispatch. |
|
|
Trellis.EntityFrameworkCore.Inbox
Transactional inbox for Trellis — the consume-side complement to the outbox. Makes integration-event consumption idempotent: redeliveries of the same message are deduplicated by message id within the consumer's unit of work, so a handler's side effects commit exactly once. EF Core reference store. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-alpha.526 | 0 | 9/30/2026 |
| 3.0.0-alpha.524 | 56 | 9/27/2026 |
| 3.0.0-alpha.520 | 72 | 9/25/2026 |
| 3.0.0-alpha.516 | 169 | 9/22/2026 |
| 3.0.0-alpha.513 | 73 | 9/22/2026 |
| 3.0.0-alpha.505 | 195 | 9/13/2026 |
| 3.0.0-alpha.495 | 244 | 8/24/2026 |
| 3.0.0-alpha.458 | 195 | 8/19/2026 |
| 3.0.0-alpha.455 | 140 | 8/19/2026 |
| 3.0.0-alpha.449 | 91 | 8/18/2026 |
| 3.0.0-alpha.447 | 86 | 8/18/2026 |
| 3.0.0-alpha.432 | 126 | 7/6/2026 |
| 3.0.0-alpha.428 | 137 | 7/3/2026 |
| 3.0.0-alpha.425 | 155 | 6/27/2026 |
| 3.0.0-alpha.419 | 102 | 6/24/2026 |
| 3.0.0-alpha.418 | 187 | 6/23/2026 |
| 3.0.0-alpha.417 | 87 | 6/23/2026 |
| 3.0.0-alpha.397 | 91 | 6/18/2026 |
| 3.0.0-alpha.396 | 91 | 6/18/2026 |
| 3.0.0-alpha.394 | 109 | 6/18/2026 |