diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.DataStore.LiteDB/LiteDBDataStoreCollection.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.DataStore.LiteDB/LiteDBDataStoreCollection.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.DataStore.LiteDB/LiteDBDataStoreCollection.cs b/Software/Visual_Studio/Tango.DataStore.LiteDB/LiteDBDataStoreCollection.cs index 9c939797a..e61385ab8 100644 --- a/Software/Visual_Studio/Tango.DataStore.LiteDB/LiteDBDataStoreCollection.cs +++ b/Software/Visual_Studio/Tango.DataStore.LiteDB/LiteDBDataStoreCollection.cs @@ -35,7 +35,8 @@ namespace Tango.DataStore.Lite Key = key, Date = DateTime.UtcNow, Type = type, - Value = value + Value = value, + IsSynchronized = false, }); } @@ -80,5 +81,10 @@ namespace Tango.DataStore.Lite { return _collection.FindById(key); } + + public List<IDataStoreItem> GetUnsynchronized() + { + return _collection.Find(x => !x.IsSynchronized).ToList(); + } } } |
