Xpandables.Entities.EntityFramework 10.0.2

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

System.Entities.EntityFramework

NuGet NuGet Downloads .NET License

Entity Framework Core implementation of repository and unit-of-work abstractions from System.Entities.

πŸ“– Overview

System.Entities.EntityFramework (NuGet: Xpandables.Entities.EntityFramework) provides DataContext (a DbContext subclass with entity lifecycle tracking), EntityRepository<TEntity> backed by EF Core, EntityUnitOfWork with SaveChangesAsync, and value converters for JsonDocument and ReadOnlyMemory<byte>. Namespace: System.Entities.EntityFramework.

Built for .NET 10 and C# 14.

✨ Features

Type File Description
DataContext DataContext.cs DbContext subclass β€” auto-sets CreatedOn/UpdatedOn on tracked entities
EntityRepository<TEntity> EntityRepository.cs IEntityRepository<TEntity> backed by DbSet<TEntity>
EntityUnitOfWork EntityUnitOfWork.cs IEntityUnitOfWork β€” wraps DataContext.SaveChangesAsync
EntityUnitOfWorkTransaction EntityUnitOfWorkTransaction.cs EF Core database transaction wrapper
EntityUpdaterExtensions EntityUpdaterExtensions.cs EF Core–specific update helpers
IEntityPropertyUpdateExtensions IEntityPropertyUpdateExtensions.cs Property update extensions for EF

πŸ”„ Value Converters

Type File Description
JsonDocumentValueConverter Converters/JsonDocumentValueConverter.cs JsonDocument ↔ string
ReadOnlyMemoryToByteArrayConverter Converters/ReadOnlyMemoryToByteArrayConverter.cs ReadOnlyMemory<byte> ↔ byte[]
ConverterExtensions Converters/ConverterExtensions.cs Registration helpers

βš™οΈ Dependency Injection

services.AddXEntityRepository();               // IEntityRepository<T> β†’ EntityRepository<T>
services.AddXEntityUnitOfWork<MyDataContext>();  // IEntityUnitOfWork β†’ EntityUnitOfWork

πŸ“¦ Installation

dotnet add package Xpandables.Entities.EntityFramework

Dependencies: Microsoft.EntityFrameworkCore, Microsoft.EntityFrameworkCore.Relational
Project References: Xpandables.Entities

πŸš€ Quick Start

using System.Entities.EntityFramework;

public class AppDbContext : DataContext
{
    public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
    public DbSet<Order> Orders => Set<Order>();
}

// Register
services.AddDbContext<AppDbContext>(o => o.UseSqlServer(connectionString));
services.AddXEntityUnitOfWork<AppDbContext>();

πŸ“„ License

Apache License 2.0 β€” Copyright Β© Kamersoft 2025

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

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
10.0.2 140 3/15/2026
10.0.1 129 2/20/2026