![]() |
VOOZH | about |
dotnet add package Linger.EFCore --version 1.4.2
NuGet\Install-Package Linger.EFCore -Version 1.4.2
<PackageReference Include="Linger.EFCore" Version="1.4.2" />
<PackageVersion Include="Linger.EFCore" Version="1.4.2" />Directory.Packages.props
<PackageReference Include="Linger.EFCore" />Project file
paket add Linger.EFCore --version 1.4.2
#r "nuget: Linger.EFCore, 1.4.2"
#:package Linger.EFCore@1.4.2
#addin nuget:?package=Linger.EFCore&version=1.4.2Install as a Cake Addin
#tool nuget:?package=Linger.EFCore&version=1.4.2Install as a Cake Tool
A C# Entity Framework Core helper library that provides enhanced query filter capabilities and property conversion extensions for .NET 9.0 and .NET 8.0.
Linger.EFCore extends Entity Framework Core with powerful features including global query filters and property type conversions, making it easier to work with complex data types and filtering scenarios.
public class User
{
public int Id { get; set; }
public UserSettings? Settings { get; set; }
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<User>().Property(x => x.Settings).HasJsonConversion();
}
public class Product
{
public int Id { get; set; }
public ICollection? Tags { get; set; }
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Product>().Property(x => x.Tags).HasStringCollectionConversion(separator: ",");
}
// Define your interface
public interface ISoftDelete { bool IsDeleted { get; set; } }
// Implement the interface in your entities
public class User : ISoftDelete
{
public int Id { get; set; }
public string Name { get; set; }
public bool IsDeleted { get; set; }
}
// Apply the filter in your DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
// This will automatically filter out soft-deleted entities
modelBuilder.ApplyGlobalFilters<ISoftDelete>(e => !e.IsDeleted);
}
// Multi-tenant filtering example
public class ApplicationDbContext : DbContext
{
private readonly int _currentTenantId;
public ApplicationDbContext(int currentTenantId)
{
_currentTenantId = currentTenantId;
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
// This will automatically filter entities by tenant
modelBuilder.ApplyGlobalFilters("TenantId", _currentTenantId);
}
}
Solution Explorer.Manage NuGet Packages....Browse tab and search for "Linger.EFCore".Linger.EFCore package, select the appropriate version and click Install.PM> Install-Package Linger.EFCore
> dotnet add package Linger.EFCore
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Linger.EFCore:
| Package | Downloads |
|---|---|
|
Linger.EFCore.Audit
An Entity Framework Core audit trail library for automatically tracking data changes. Captures entity creation, modification, and deletion events with old and new values. Provides configurable audit logging with support for user tracking and timestamping. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.4-preview | 56 | 6/16/2026 |
| 1.4.3-preview | 99 | 6/15/2026 |
| 1.4.2 | 115 | 5/20/2026 |
| 1.4.1-preview | 110 | 5/12/2026 |
| 1.4.0 | 118 | 5/6/2026 |
| 1.3.3-preview | 104 | 5/5/2026 |
| 1.3.2-preview | 108 | 4/29/2026 |
| 1.3.1-preview | 104 | 4/28/2026 |
| 1.3.0-preview | 109 | 4/27/2026 |
| 1.2.0-preview | 120 | 3/29/2026 |
| 1.1.0 | 141 | 2/4/2026 |
| 1.0.3-preview | 139 | 1/9/2026 |
| 1.0.2-preview | 129 | 1/8/2026 |
| 1.0.0 | 331 | 11/12/2025 |
| 1.0.0-preview2 | 181 | 11/6/2025 |
| 1.0.0-preview1 | 185 | 11/5/2025 |
| 0.9.9 | 171 | 10/16/2025 |
| 0.9.8 | 188 | 10/14/2025 |
| 0.9.7-preview | 166 | 10/13/2025 |
| 0.9.6-preview | 154 | 10/12/2025 |