Class DbContextExtensions
A database context class, providing extension methods for Entity Framework Core.
Inheritance
System.Object
                DbContextExtensions
              Assembly: Alachisoft.NCache.EntityFrameworkCore.dll
Syntax
public static class DbContextExtensions : object
              Methods
GetCache(DbContext)
Returns the instance of the cache binded with the database context on which the method is called.
Declaration
public static Cache GetCache(this DbContext context)
              Parameters
| Type | Name | Description | 
|---|---|---|
| DbContext | context | The database context on which the method is called.  | 
                  
Returns
| Type | Description | 
|---|---|
| Cache | Returns the instance of the Cache binded with the database context.  |