C# Class Nxdb.Persistence.Persister

This is the base class for reusable persisters. To add new persisters, create a derived class and override Fetch, Serialize, and/or Store.
Afficher le fichier Open project: daveaglick/Nxdb Class Usage Examples

Méthodes protégées

Méthode Description
Fetch ( Element element, object target ) : void

Fetches data for the specified object from the specified element.

Serialize ( object source ) : object

Serializes the instance to an arbitrary object that will be passed to Store.Doing storage in two phases allows failure without manipulating the database.

Store ( Element element, object serialized, object source ) : void

Stores data for the specified object to the specified element.

Private Methods

Méthode Description
Fetch ( Element element, object target, TypeCache typeCache, Cache cache ) : void
Serialize ( object source, TypeCache typeCache, Cache cache ) : object
Store ( Element element, object source, TypeCache typeCache, Cache cache ) : void
Store ( Element element, object serialized, object source, TypeCache typeCache, Cache cache ) : void

Method Details

Fetch() protected méthode

Fetches data for the specified object from the specified element.
protected Fetch ( Element element, object target ) : void
element Nxdb.Node.Element The element to fetch data from.
target object The object to fetch data for.
Résultat void

Serialize() protected méthode

Serializes the instance to an arbitrary object that will be passed to Store.Doing storage in two phases allows failure without manipulating the database.
protected Serialize ( object source ) : object
source object The object to store data for.
Résultat object

Store() protected méthode

Stores data for the specified object to the specified element.
protected Store ( Element element, object serialized, object source ) : void
element Nxdb.Node.Element The element to store data to.
serialized object The serialized object returned by Serialize.
source object The object to store data for.
Résultat void