Ejemplo n.º 1
0
        /// <summary>
        /// Checks if the entry has the specified tag.
        /// </summary>
        /// <param name="tag">The tag.</param>
        /// <returns><c>true</c> if the entry has this tag, <c>false</c> if not.</returns>
        /// <exception cref="QdbAliasNotFoundException">The entry doesn't exists in the database.</exception>
        /// <seealso cref="QdbTag"/>
        public bool HasTag(QdbTag tag)
        {
            if (tag == null) throw new ArgumentNullException("tag");

            return Api.HasTag(Alias, tag.Alias);
        }
Ejemplo n.º 2
0
 public void Initialize()
 {
     _tag = QdbTestCluster.CreateEmptyTag();
 }
Ejemplo n.º 3
0
 public void Initialize()
 {
     _entry = QdbTestCluster.CreateBlob();
     _tag1 = QdbTestCluster.CreateEmptyTag();
 }
Ejemplo n.º 4
0
 public static QdbHashSet CreateTaggedHashSet(QdbTag tag)
 {
     var hashSet = CreateHashSet();
     hashSet.AddTag(tag);
     return hashSet;
 }
Ejemplo n.º 5
0
 public static QdbBlob CreateTaggedBlob(QdbTag tag)
 {
     var blob = CreateBlob();
     blob.AddTag(tag);
     return blob;
 }
Ejemplo n.º 6
0
 public static QdbTag CreateTaggedTag(QdbTag tag)
 {
     var newTag = CreateTag();
     newTag.AddTag(tag);
     return newTag;
 }
Ejemplo n.º 7
0
 public static QdbQueue CreateTaggedQueue(QdbTag tag)
 {
     var queue = CreateQueue();
     queue.AddTag(tag);
     return queue;
 }
Ejemplo n.º 8
0
 public static QdbInteger CreateTaggedInteger(QdbTag tag)
 {
     var integer = CreateInteger();
     integer.AddTag(tag);
     return integer;
 }