Click or drag to resize

QdbTag Class

A tag in a quasardb database.
Inheritance Hierarchy

Namespace:  Quasardb
Assembly:  Quasardb (in Quasardb.dll) Version: 3.15.0.0 (3.15.0.0)
Syntax
public sealed class QdbTag : QdbEntry

The QdbTag type exposes the following members.

Properties
  NameDescription
Public propertyAlias
The alias of the entry in the database.
(Inherited from QdbEntry.)
Top
Methods
  NameDescription
Public methodAttachEntry(String)
Adds a tag to a database entry.
Public methodAttachEntry(QdbEntry)
Adds a tag to a database entry.
Public methodAttachTag(String)
Adds a tag to the entry.
(Inherited from QdbEntry.)
Public methodAttachTag(QdbTag)
Adds a tag to the entry.
(Inherited from QdbEntry.)
Public methodDetachEntry(String)
Removes a tag from a database entry.
Public methodDetachEntry(QdbEntry)
Removes a tag from a database entry.
Public methodDetachTag(String)
Removes a tag from the entry.
(Inherited from QdbEntry.)
Public methodDetachTag(QdbTag)
Removes a tag from the entry.
(Inherited from QdbEntry.)
Public methodGetEntries
Gets database entries which are tagged with the current tag.
Public methodGetTags
Gets the tags of the entry
(Inherited from QdbEntry.)
Public methodHasEntry(String)
Checks if an entry has this tag.
Public methodHasEntry(QdbEntry)
Checks if an entry has this tag.
Public methodHasTag(String)
Checks if the entry has the specified tag.
(Inherited from QdbEntry.)
Public methodHasTag(QdbTag)
Checks if the entry has the specified tag.
(Inherited from QdbEntry.)
Public methodRemove
Removes the entry from the database.
(Inherited from QdbEntry.)
Top
Remarks
QdbTag can be constructed via Tag(String).
Examples
How to tag a blob:
var cluster = new QdbCluster("qdb://127.0.0.1:2836");
cluster.Blob("some name").AttachTag("some tag");
How to get tagged entries:
var cluster = New QdbCluster("qdb://127.0.0.1:2836");
IEnumerable<QdbEntry> tagged = cluster.Tag("some tag").GetEntries();
See Also