Use IdentityMapBehavior instead
Defines how references to instances of persistent objects are stored in a session’s cache.
The behavior is determined by XPO. For instance, in XPO version 8.1 this is equal to CacheBehavior.Weak.
Instances of the System.WeakReference class are used.
Direct references to objects are used.