Click or drag to resize

IPersistableTypeGetKey Method

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.

Namespace:  Neon.Data
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
string GetKey()

Return Value

Type: String
The database key for the entity.
See Also