TinyHelpers.EntityFrameworkCore 1.0.56

Tiny Helpers for Entity Framework Core

GitHub Super-Linter NuGet Nuget

A collection of helper methods and classes for Entity Framework Core that I use everyday. I have packed them in a single library to avoid code duplication.

Installation

The library is available on NuGet. Just search TinyHelpers.EntityFrameworkCore in the Package Manager GUI or run the following command in the Package Manager Console:

Install-Package TinyHelpers.EntityFrameworkCore

Usage

The library provides some Value Converters to handle data types that are not natively supported by Entity Framework Core. They can be explicitly used calling the HasConversion method, or automatically via some extension methods:

// using TinyHelpers.EntityFrameworkCore.Extensions;
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    modelBuilder.Entity<Post>(builder =>
    {           
        // Date is a DateOnly property (.NET 6)
        builder.Property(x => x.Date).HasDateOnlyConversion();
    
        // Time is a TimeOnly property (.NET 6)
        builder.Property(x => x.Time).HasTimeOnlyConversion();
   
        // Comments is a complex type, this Converter will automatically JSON-de/serialize it
        // in a string column.
        builder.Property(x => x.Comments).HasJsonConversion();
    });
}

Contribute

The project is constantly evolving. Contributions are welcome. Feel free to file issues and pull requests on the repo and we'll address them as we can.

No packages depend on TinyHelpers.EntityFrameworkCore.

Version Downloads Last updated
3.0.58 1 10/27/2025
3.0.56 4 09/22/2025
3.0.54 4 09/03/2025
3.0.52 4 09/03/2025
3.0.51 3 09/03/2025
3.0.49 5 09/03/2025
3.0.48 5 09/03/2025
3.0.47 4 09/03/2025
3.0.46 4 09/03/2025
3.0.45 5 09/03/2025
3.0.44 4 09/03/2025
3.0.43 5 09/03/2025
3.0.40 3 09/03/2025
3.0.32 4 09/03/2025
3.0.27 4 09/03/2025
3.0.25 5 09/03/2025
3.0.24 4 09/03/2025
3.0.22 4 09/03/2025
3.0.19 4 09/03/2025
3.0.18 4 09/03/2025
3.0.17 4 09/03/2025
3.0.14 3 09/03/2025
3.0.12 5 09/03/2025
3.0.8 4 09/03/2025
3.0.6 5 09/03/2025
3.0.3 4 09/03/2025
3.0.2 5 09/03/2025
2.0.21 5 09/03/2025
2.0.20 5 09/03/2025
2.0.19 4 09/03/2025
2.0.18 5 09/03/2025
2.0.17 4 09/03/2025
2.0.16 4 09/03/2025
2.0.14 5 09/02/2025
2.0.13 5 09/03/2025
2.0.12 5 09/03/2025
2.0.10 4 09/03/2025
2.0.9 4 09/03/2025
2.0.4 5 09/03/2025
1.0.76 4 09/03/2025
1.0.72 5 09/03/2025
1.0.61 5 09/03/2025
1.0.59 5 09/03/2025
1.0.57 5 09/03/2025
1.0.56 4 09/03/2025
1.0.52 4 09/03/2025
1.0.48 4 09/03/2025
1.0.45 4 09/03/2025
1.0.43 4 09/03/2025
1.0.34 6 09/03/2025