Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PersistedModel.cs
1using System.Collections.Generic;
2using System.Threading.Tasks;
3
4namespace LegalLab.Models
5{
9 public abstract class PersistedModel : Model
10 {
11 private readonly LinkedList<IPersistedProperty> properties = new LinkedList<IPersistedProperty>();
12
18 {
19 this.properties.AddLast(Property);
20 }
21
25 public async Task Load()
26 {
27 foreach (IPersistedProperty Property in this.properties)
28 await Property.Load();
29 }
30
34 public async Task Save()
35 {
36 foreach (IPersistedProperty Property in this.properties)
37 await Property.Save();
38 }
39 }
40}