Click or drag to resize

IPersistableType Methods

The IPersistableType type exposes the following members.

Public method__Load
Loads the entity properties from the backing JObject or from the optional JObject passed.
Public method__Save
Persists the object properties to the backing JObject.
Public methodGetKey

Returns the Couchbase or other database key to be used to persist or retrieve the entity. By convention for Couchbase, this key includes the entity type plus the unique key formatted like entity-type::unique-key. For example:


This identifies the document as a user with unique ID as 122330. Document IDs are formatted like this so that we'll be able to take advantage of document filtering by type when we've enabled Couchbase cross datacenter replication.

See Also