TCJ.EntityFrameworkCore
0.1.0-preview.4
dotnet add package TCJ.EntityFrameworkCore --version 0.1.0-preview.4
NuGet\Install-Package TCJ.EntityFrameworkCore -Version 0.1.0-preview.4
<PackageReference Include="TCJ.EntityFrameworkCore" Version="0.1.0-preview.4" />
<PackageVersion Include="TCJ.EntityFrameworkCore" Version="0.1.0-preview.4" />
<PackageReference Include="TCJ.EntityFrameworkCore" />
paket add TCJ.EntityFrameworkCore --version 0.1.0-preview.4
#r "nuget: TCJ.EntityFrameworkCore, 0.1.0-preview.4"
#:package TCJ.EntityFrameworkCore@0.1.0-preview.4
#addin nuget:?package=TCJ.EntityFrameworkCore&version=0.1.0-preview.4&prerelease
#tool nuget:?package=TCJ.EntityFrameworkCore&version=0.1.0-preview.4&prerelease
TCJ.EntityFrameworkCore
TCJ.EntityFrameworkCore provides provider-independent EF Core infrastructure for TCJ applications, including repositories, specifications, Unit of Work, auditing, soft delete, ordered/idempotent seeding, entity metadata, health integration, and transactional-outbox persistence components.
Install
dotnet add package TCJ.EntityFrameworkCore --prerelease
TCJ Framework is currently pre-1.0. Pin the exact preview version used by your application when reproducibility matters.
Highlights
- Repository and specification abstractions over EF Core.
- Unit of Work and transaction boundaries without hidden
SaveChangescalls. - Auditing and explicit soft-delete behavior.
- Ordered, idempotent data seeding support.
- Provider-independent health and startup-diagnostic integration.
- Transactional-outbox persistence and processing infrastructure.
- Explicit provider-neutral Strong ID conversion registration for generated
Guid,int, andlongIDs. - Explicit provider-neutral Value Object conversion registration for generated
string,Guid,int,long, anddecimalValue Objects. - Experimental Native AOT support following EF Core's compiled-model/query-precompilation constraints.
Example
using TCJ.EntityFrameworkCore.Extensions;
services.AddTcjEntityFrameworkCore<AppDbContext>(options =>
options.UseInMemoryDatabase("app"));
Production applications should configure the EF Core provider appropriate to their environment. SQL Server-specific registration is provided by TCJ.EntityFrameworkCore.SqlServer.
Generated Strong IDs can be registered without assembly scanning:
using TCJ.EntityFrameworkCore.Extensions;
using TCJ.EntityFrameworkCore.StrongTypes;
var strongIds = new StrongIdConversionRegistry()
.Register<OrderId, Guid>(
OrderId.StrongIdConversion.ToBackingValue,
OrderId.StrongIdConversion.FromBackingValue);
modelBuilder.ApplyStrongIdConversions(strongIds);
The generated expressions themselves are EF-independent; only the consuming persistence project needs TCJ.EntityFrameworkCore.
Generated Value Objects use the same explicit pattern:
var valueObjects = new ValueObjectConversionRegistry()
.Register<EmailAddress, string>(
EmailAddress.ValueObjectConversion.ToBackingValue,
EmailAddress.ValueObjectConversion.FromBackingValue)
.Register<MoneyAmount, decimal>(
MoneyAmount.ValueObjectConversion.ToBackingValue,
MoneyAmount.ValueObjectConversion.FromBackingValue);
modelBuilder.ApplyValueObjectConversions(valueObjects);
Value Objects persist as primitive columns and materialize through their generated validated Create path. Invalid legacy rows fail without exposing the rejected scalar or validation details; TCJ does not silently bypass validation or rewrite stored data.
Documentation
- TCJ.EntityFrameworkCore package documentation
- Specifications and repositories guide
- Auditing, soft delete, and rowversion guide
- Data seeding guide
- Transactional outbox
- Native AOT and trimming guide
- Repository
- Issues
License
TCJ Framework is licensed under GNU LGPL v3.0 only (LGPL-3.0-only). See the repository license for details.
| 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
- Microsoft.EntityFrameworkCore (>= 10.0.10)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Pluralize.Core (>= 2.0.7)
- TCJ.Core (>= 0.1.0-preview.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TCJ.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
TCJ.EntityFrameworkCore.SqlServer
SQL Server provider integration for TCJ Entity Framework Core, including resilient registration options and rowversion conventions. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.4 | 3,563 | 9/1/2026 |
| 0.1.0-preview.3 | 2,075 | 8/16/2026 |
| 0.1.0-preview.2 | 239 | 8/15/2026 |
| 0.1.0-preview.1 | 1,689 | 8/2/2026 |
TCJ Framework preview release. Public APIs may change before 1.0.0. Changelog: https://github.com/Amir-ESH/TCJ.Framework/blob/main/CHANGELOG.md