Trellis.EntityFrameworkCore 3.0.0-alpha.526

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

Trellis.EntityFrameworkCore

NuGet Package

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 with GetMaybePropertyMappings() / ToMaybeMappingDebugString().
  • Result-returning save helpers and idempotent unique-key inserts.
  • Typed seek pagination through SeekDefinition and ToPageAsync.
  • 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed