• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Show / Hide Table of Contents

Method GetKey

GetKey(DbContext, Object)

Generates the cache key for the entity specified.

Declaration
public abstract 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.

Back to top Copyright © 2017 Alachisoft