NPersistence Reference Guide
Specifies whether an entity should be cached if caching is enabled when the value of the persistence.xml caching element is ENABLE_SELECTIVE or DISABLE_SELECTIVE. The value of the Cacheable annotation is inherited by subclasses; it can be overridden by specifying Cacheable on a subclass.

Cacheable(false) means that the entity and its state must not be cached by the provider.

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
public sealed class Cacheable : Attribute

Members

         
 All Members  Constructors   Fields  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Cacheable()()()()
Initializes a new instance of the Cacheable class
Cacheable(Boolean)
Initializes a new instance of the Cacheable class
Value
(Optional) Whether or not the entity should be cached.

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    NPersistence..::..Cacheable

See Also