Entity Framework (EF) Core Installation
This page provides a guide on integrating NCache with Entity Framework (EF) Core as a Second-Level Cache (L2 Cache). By caching database results in NCache’s distributed cache memory, you can eliminate database latency and boost application performance. Here are the NuGet packages and namespaces that are required for a smooth integration.
Install NuGet Package for EFCore
Install the following NuGet packages to your EF Core application by executing the following command in the Package Manager Console:
Install-Package EntityFrameworkCore.NCache
Include Namespaces for EF Core
To utilize the APIs, include the following namespaces in your EF Core application:
Sample Code
NCache provides a sample application for EF Core on GitHub.
See Also
Using EF Core Extension Methods with NCache
Logging in EF Core Extension Methods