aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.DataStore
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-21 04:06:23 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-21 04:06:23 +0300
commite8cec64cf5c35b17fed6a1f8f4ea0665d4ddf39b (patch)
treeb6818e4199eef7cb0b1e183aaf1af08cdba723e9 /Software/Visual_Studio/Tango.DataStore
parente54736fabf4338e9f98a7b8aba738180ae57c120 (diff)
downloadTango-e8cec64cf5c35b17fed6a1f8f4ea0665d4ddf39b.tar.gz
Tango-e8cec64cf5c35b17fed6a1f8f4ea0665d4ddf39b.zip
DataStore EF !
Diffstat (limited to 'Software/Visual_Studio/Tango.DataStore')
-rw-r--r--Software/Visual_Studio/Tango.DataStore/IDataStoreCollection.cs5
-rw-r--r--Software/Visual_Studio/Tango.DataStore/IDataStoreItem.cs10
2 files changed, 15 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.DataStore/IDataStoreCollection.cs b/Software/Visual_Studio/Tango.DataStore/IDataStoreCollection.cs
index 45f5d3406..e73d02328 100644
--- a/Software/Visual_Studio/Tango.DataStore/IDataStoreCollection.cs
+++ b/Software/Visual_Studio/Tango.DataStore/IDataStoreCollection.cs
@@ -61,6 +61,11 @@ namespace Tango.DataStore
/// <returns></returns>
List<IDataStoreItem> GetAll();
/// <summary>
+ /// Gets all the data store unsynchronized items in the collection.
+ /// </summary>
+ /// <returns></returns>
+ List<IDataStoreItem> GetUnsynchronized();
+ /// <summary>
/// Deleted an item by the specified key.
/// </summary>
/// <param name="key">The key.</param>
diff --git a/Software/Visual_Studio/Tango.DataStore/IDataStoreItem.cs b/Software/Visual_Studio/Tango.DataStore/IDataStoreItem.cs
index 1e58518ff..9c03f40ee 100644
--- a/Software/Visual_Studio/Tango.DataStore/IDataStoreItem.cs
+++ b/Software/Visual_Studio/Tango.DataStore/IDataStoreItem.cs
@@ -12,6 +12,11 @@ namespace Tango.DataStore
public interface IDataStoreItem
{
/// <summary>
+ /// Gets or sets the unique identifier (Use only for synchronization).
+ /// </summary>
+ String Guid { get; set; }
+
+ /// <summary>
/// Gets or sets item id.
/// </summary>
String Key { get; set; }
@@ -30,5 +35,10 @@ namespace Tango.DataStore
/// Gets or sets the item update UTC date.
/// </summary>
DateTime Date { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether this item is synchronized with the remote service.
+ /// </summary>
+ bool IsSynchronized { get; set; }
}
}