Sencilla.Repository.EntityFramework 10.0.37

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

Sencilla.Repository.EntityFramework

Entity Framework Core repository implementation for the Sencilla Framework.

What's Included

  • Full CRUD repository implementation backed by EF Core
  • Support for all Sencilla entity lifecycle interfaces (create, update, soft-delete, hide)
  • Built-in filtering, sorting, and pagination
  • Transaction support
  • Zero-boilerplate auto-registration — define an entity, get repositories automatically

Installation

dotnet add package Sencilla.Repository.EntityFramework

Quick Start

1. Define an entity — the interfaces you implement determine which repositories are auto-registered:

using Sencilla.Core;

public class Product :
    IEntity<int>,
    IEntityCreateableTrack,   // → ICreateRepository<Product> + auto-sets CreatedDate
    IEntityUpdateableTrack,   // → IUpdateRepository<Product> + auto-sets UpdatedDate
    IEntityDeleteable         // → IDeleteRepository<Product>
{
    public int Id { get; set; }
    public string Name { get; set; } = string.Empty;
    public decimal Price { get; set; }
    public DateTime CreatedDate { get; set; }
    public DateTime UpdatedDate { get; set; }
}

2. Register Sencilla — no DbContext or repository classes needed:

builder.Services.AddSencilla(builder.Configuration);
builder.Services.AddSencillaRepositoryForEF(options =>
    options.UseSqlServer(builder.Configuration.GetConnectionString("Default")));

3. Inject and use:

public class ProductService(
    IReadRepository<Product> reader,
    ICreateRepository<Product> creator,
    IUpdateRepository<Product> updater)
{
    // All repositories are auto-injected
}

Documentation

License

MIT

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 (1)

Showing the top 1 NuGet packages that depend on Sencilla.Repository.EntityFramework:

Package Downloads
Sencilla.Authentication

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.37 53 6/6/2026
10.0.36 45 6/6/2026
10.0.35 70 6/5/2026
10.0.34 46 6/5/2026
10.0.32 48 6/4/2026
10.0.31 44 6/4/2026
10.0.30 47 6/4/2026
10.0.29 45 6/4/2026
10.0.28 45 6/3/2026
10.0.27 43 6/3/2026
10.0.26 49 6/2/2026
10.0.19 100 6/1/2026
10.0.18 95 6/1/2026
10.0.17 150 5/13/2026
10.0.16 95 5/12/2026
10.0.15 95 5/12/2026
10.0.14 102 5/1/2026
10.0.13 162 3/29/2026
10.0.12 218 3/2/2026
10.0.11 117 2/27/2026
Loading failed