Link Search Menu Expand Document

IdentityCache


A cacher class for the class identity property. Underneath, it uses the IdentityMapper class to extract the results and caching it 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

You can simply call the Get() method of this class 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 the IdentityMapper and PropertyCache classes to extract the list of ClassProperty and filter the result using the given IsIdentity() method.