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.
파일 보기 프로젝트 열기: daveaglick/Nxdb 1 사용 예제들

보호된 메소드들

메소드 설명
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