Click or drag to resize

IPersistableType Interface

Namespace:  Neon.Data
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.1.0
Syntax
public interface IPersistableType

The IPersistableType type exposes the following members.

Properties
  NameDescription
Public property__T
Identifies the entity type.
Top
Methods
  NameDescription
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:

user::122330

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.

Top
See Also