C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Fetch() защищенный Метод

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.
Результат void

Serialize() защищенный Метод

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.
Результат object

Store() защищенный Метод

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.
Результат void