Persistate API documentation
Adopt Method (child, member, slot)
NamespacesPersistatePersistentAdopt(Persistent, IReference%, Int32)

[This is preliminary documentation and is subject to change.]

This method is intended for use only from generated code, and you should not use it in open code.
Declaration Syntax
C#
public void Adopt(
	Persistent child,
	ref IReference member,
	int slot
)
Parameters
child (Persistent)
The new child to be adopted by this object.
member (IReference%)
The member field in this object into which this object is set.
slot (Int32)
The slot of the member field.
Remarks

Adopts the given object as a child of this object, and sets it into into the member field passed as an IReference. In normal processing this is the ONLY place where parent of an object is set. This method is called in the set methods of persistent properties for contained object members. It is also called from IndexedList<(Of <(<'T>)>)> when objects are added to non contained collections. Any existing child object in this member is deleted from persistent storage. Note that child can be null, in which case nothing further is done. Otherwise the child's parent is set to this.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)