Method GetKey
GetKey(DbContext, Object)
Generates the cache key for the entity specified.
Declaration
public override string GetKey(DbContext context, object entity)
Parameters
Type | Name | Description |
---|---|---|
DbContext | context | The context which will be used to generate the key. |
System.Object | entity | The entity whos key is to be generated. |
Returns
Type | Description |
---|---|
System.String | Returns the cache key. |