Link Search Menu Expand Document

IdentityCache


A cacher class for the class identity property. It uses IdentityMapper internally to extract results and caches them for future use.

Methods

Below are the methods available from this class.

FlushAllows you to flush the caches.
GetReturns the list of Field objects.

Usability

Call the Get() method by passing the class type:

var identity = IdentityCache.Get(typeof(Person));
// Use the 'identity' here

Or via generic type:

var identity = IdentityCache.Get<Person>();
// Use the 'identity' here

Internally, it uses IdentityMapper and PropertyCache to extract ClassProperty objects and filter them using IsIdentity().