DotEmilu.EntityFrameworkCore 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package DotEmilu.EntityFrameworkCore --version 1.0.1                
NuGet\Install-Package DotEmilu.EntityFrameworkCore -Version 1.0.1                
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="DotEmilu.EntityFrameworkCore" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotEmilu.EntityFrameworkCore --version 1.0.1                
#r "nuget: DotEmilu.EntityFrameworkCore, 1.0.1"                
#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.
// Install DotEmilu.EntityFrameworkCore as a Cake Addin
#addin nuget:?package=DotEmilu.EntityFrameworkCore&version=1.0.1

// Install DotEmilu.EntityFrameworkCore as a Cake Tool
#tool nuget:?package=DotEmilu.EntityFrameworkCore&version=1.0.1                

DotEmilu EF Core

A simple, easy-to-use .NET library designed for EF Core interceptors, auditable entities.

Features

  • Supports CREATE, UPDATE, DELETE tracking.
  • Provides properties for base entities.
  • Provides a contract to implement http user context information.

How to Use

Follow these simple steps to get started:

  1. Define Your Database Entities
    Create your database entities as needed for your application.

    //To track inherit from BaseAuditableEntity
    public class Person : BaseAuditableEntity
    {
        public string? Name { get; set; }
        public string? Surname { get; set; }
    }
    
  2. Implement Context User Information
    Create an implementation to retrieve user context information (e.g., user ID, roles).

    //Feel free to inject your necessary dependencies to provide user information.
    public class ContextUser : IContextUser
    {
        public Guid Id => Guid.NewGuid();
    }
    
  3. Register the Interceptor
    Add your custom interceptor to the dependency injection container in your application.

    builder.Services
        .AddDotEmiluInterceptors<ContextUser>();
    
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
1.0.3 49 2/18/2025
1.0.2 52 2/18/2025
1.0.1 90 2/5/2025
1.0.0 82 1/28/2025

Updated Microsoft.EntityFrameworkCore to version 8.0.12 for the latest improvements and bug fixes.