Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PersistedElement.cs
1using System;
4
6{
10 [CollectionName("PrivateXmlStorage")]
11 [ArchivingTime]
12 [Index("Account", "Namespace", "LocalName")]
13 public class PersistedElement
14 {
15 private Guid objectId = Guid.Empty;
17 private string _namespace = string.Empty;
18 private string localName = string.Empty;
19 private string xml = string.Empty;
20 private DateTime created = DateTime.MinValue;
21 private DateTime updated = DateTime.MinValue;
22
27 {
28 }
29
33 [ObjectId]
34 public Guid ObjectId
35 {
36 get => this.objectId;
37 set => this.objectId = value;
38 }
39
44 {
45 get => this.account;
46 set => this.account = value;
47 }
48
52 public string Namespace
53 {
54 get => this._namespace;
55 set => this._namespace = value;
56 }
57
61 public string LocalName
62 {
63 get => this.localName;
64 set => this.localName = value;
65 }
66
70 [DefaultValueStringEmpty]
71 public string Xml
72 {
73 get => this.xml;
74 set => this.xml = value;
75 }
76
80 [DefaultValueDateTimeMinValue]
81 public DateTime Created
82 {
83 get => this.created;
84 set => this.created = value;
85 }
86
90 [DefaultValueDateTimeMinValue]
91 public DateTime Updated
92 {
93 get => this.updated;
94 set => this.updated = value;
95 }
96
97 // TODO: When deleting account, delete its persisted elements as well.
98 }
99}
Contains information about one persisted XML element.
PersistedElement()
Contains information about one persisted XML element.
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string