Neox.Extensions.Caching.SqlServer.EntityFrameworkCore
10.0.7
dotnet add package Neox.Extensions.Caching.SqlServer.EntityFrameworkCore --version 10.0.7
NuGet\Install-Package Neox.Extensions.Caching.SqlServer.EntityFrameworkCore -Version 10.0.7
<PackageReference Include="Neox.Extensions.Caching.SqlServer.EntityFrameworkCore" Version="10.0.7" />
<PackageVersion Include="Neox.Extensions.Caching.SqlServer.EntityFrameworkCore" Version="10.0.7" />
<PackageReference Include="Neox.Extensions.Caching.SqlServer.EntityFrameworkCore" />
paket add Neox.Extensions.Caching.SqlServer.EntityFrameworkCore --version 10.0.7
#r "nuget: Neox.Extensions.Caching.SqlServer.EntityFrameworkCore, 10.0.7"
#:package Neox.Extensions.Caching.SqlServer.EntityFrameworkCore@10.0.7
#addin nuget:?package=Neox.Extensions.Caching.SqlServer.EntityFrameworkCore&version=10.0.7
#tool nuget:?package=Neox.Extensions.Caching.SqlServer.EntityFrameworkCore&version=10.0.7
Neox.Extensions.Caching.SqlServer.EntityFrameworkCore
Neox.Extensions.Caching.SqlServer.EntityFrameworkCore provides an EF Core model extension to register the SQL Server distributed cache table schema used by Microsoft.Extensions.Caching.SqlServer.
This is useful when you want EF Core migrations to create and manage the cache table in the same migration flow as the rest of your application.
Installation
dotnet add package Neox.Extensions.Caching.SqlServer.EntityFrameworkCore
Usage
Call the extension method in your OnModelCreating method:
using Microsoft.EntityFrameworkCore;
using Neox.Extensions.Caching.SqlServer.EntityFrameworkCore;
public class AppDbContext : DbContext
{
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.WithSqlServerCacheEntity(tableName: "Cache", schemaName: "dbo");
}
}
The generated entity maps the following columns:
IdValueExpiresAtTimeSlidingExpirationInSecondsAbsoluteExpiration
Compatibility
- .NET
10.0 Microsoft.EntityFrameworkCore.SqlServer10.0.7
Build
dotnet build
License
MIT (to be confirmed in repository license file).
Contributing
Issues and pull requests are welcome. Please open an issue first for significant changes to discuss design and compatibility impact.
| Product | Versions 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. |
-
net10.0
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.7)
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.7 | 108 | 4/29/2026 |