Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DictionaryEntry.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
5
7{
11 [CollectionName(DictionaryEntry.CollectionName)]
12 [Index("Collection", "Key")]
13 public class DictionaryEntry
14 {
18 public const string CollectionName = "PersistentDictionary";
19
20 private string objectId = null;
21 private string collection = string.Empty;
22 private string key = string.Empty;
23 private object value = null;
24
29 {
30 }
31
35 [ObjectId]
36 public string ObjectId
37 {
38 get => this.objectId;
39 set => this.objectId = value;
40 }
41
45 [ShortName("c")]
46 public string Collection
47 {
48 get => this.collection;
49 set => this.collection = value;
50 }
51
55 [ShortName("k")]
56 public string Key
57 {
58 get => this.key;
59 set => this.key = value;
60 }
61
65 [DefaultValueStringEmpty]
66 [ShortName("v")]
67 public object Value
68 {
69 get => this.value;
70 set => this.value = value;
71 }
72 }
73}
Contains a reference to a thing
string Collection
Dictionary collection
string Key
Dictionary key
string ObjectId
Persisted object ID. Is null if object not persisted.
DictionaryEntry()
Contains a reference to a thing
object Value
Dictionary value
const string CollectionName
Name of collection: "PersistentDictionary"