Click or drag to resize

WeakIOptimizedPersistableReferenceXT Class

Note: This API is now obsolete.

Deprecated, use WeakIOptimizedPersistableReference instead (so name conflict can be avoided) When a persistent object is opened, all its referenced objects are opened as well. In order to limit the number of opened objects, you need to use this class. A reference from an instance of this class will not cause the referenced object to be opened. It will be opened when you ask for it. The Type of the weak referenced object, must be OptimizedPersistable
Inheritance Hierarchy
SystemObject
  VelocityDbWeakIOptimizedPersistableReferenceBase
    VelocityDbWeakIOptimizedPersistableReferenceXT

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 10.2.0.0 (10.2)
Syntax
[SerializableAttribute]
[ObsoleteAttribute("Use WeakIOptimizedPersistableReference instead (so name conflict can be avoided)", 
	false)]
public class WeakIOptimizedPersistableReferenceX<T> : WeakIOptimizedPersistableReferenceBase
where T : IOptimizedPersistable

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:VelocityDb.WeakIOptimizedPersistableReferenceX`1"]

The WeakIOptimizedPersistableReferenceXT type exposes the following members.

Constructors
  NameDescription
Public methodWeakIOptimizedPersistableReferenceXT(UInt64)
Creates a weak reference to some OptimizedPersistable object Can be created using Oid.Encode(databaseNumber, pageNumber, pageNumber)
Public methodWeakIOptimizedPersistableReferenceXT(T)
Creates a weak reference to some OptimizedPersistable object. This object must be persisted before adding as a weak reference.
Public methodWeakIOptimizedPersistableReferenceXT(Oid)
Creates a weak reference to some OptimizedPersistable object Can be created using Oid.Encode(databaseNumber, pageNumber, pageNumber)
Top
Properties
Methods
  NameDescription
Public methodGetTarget
Gets the persistent object referenced by the weak reference
Public methodToString
Append the Oid of the referenced object to the string.
(Overrides ObjectToString.)
Top
See Also