Entity Framework (EF) Core Installation
This page provides a guide on integrating NCache with Entity Framework (EF) Core, specifying the required NuGet packages and Namespaces.
Note
This feature is also available in the NCache Community Edition, except for the FromCacheOnly
API.
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:
- EntityFrameworkCore.NCache for Enterprise:
Install-Package EntityFrameworkCore.NCache
- EntityFrameworkCore.NCache for Community:
Install-Package EntityFrameworkCore.NCache.Community
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