Persistate API documentation
Database Property
NamespacesPersistatePersistentDatabase

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

Gets the Database object for the database in which this object is or is to be stored.
Declaration Syntax
C#
public virtual Database Database { get; }
Remarks

This can return a Database even though the object has not yet been saved in persistent storage, if you have either attached the object to a parent which has been saved, or have used the StoreInDatabase method to indicate which database it or an ancestor is to be stored in. By default, objects are stored in the same database as their parent.

If this is a foreign object, this property returns the database in which the local copy is held. If this object has not been persisted, attached or allocated a database, this returns null.

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