/// <summary>
 /// Defines the the table for storing config settings
 /// </summary>
 /// <param name="store">An instance of <see cref="IMobileServiceLocalStore"/></param>
 public static void DefineTable(MobileServiceLocalStore store)
 {
     store.DefineTable(MobileServiceLocalSystemTables.Config, new JObject()
     {
         { MobileServiceSystemColumns.Id, String.Empty },
         { "value", String.Empty },
     });
 }
 /// <summary>
 /// Defines the the table for storing config settings
 /// </summary>
 /// <param name="store">An instance of <see cref="IMobileServiceLocalStore"/></param>
 public static void DefineTable(MobileServiceLocalStore store)
 {
     store.DefineTable(MobileServiceLocalSystemTables.Config, new JObject()
     {
         { MobileServiceSystemColumns.Id, String.Empty },
         { "value", String.Empty },
     });
 }
 /// <summary>
 /// Defines the the table for storing errors
 /// </summary>
 /// <param name="store">An instance of <see cref="IMobileServiceLocalStore"/></param>
 internal static void DefineTable(MobileServiceLocalStore store)
 {
     store.DefineTable(MobileServiceLocalSystemTables.SyncErrors, new JObject()
     {
         { MobileServiceSystemColumns.Id, String.Empty },
         { "httpStatus", 0 },
         { "operationVersion", 0 },
         { "operationKind", 0 },
         { "tableName", String.Empty },
         { "tableKind", 0 },
         { "item", String.Empty },
         { "rawResult", String.Empty }
     });
 }
コード例 #4
0
 /// <summary>
 /// Defines the the table for storing operations
 /// </summary>
 /// <param name="store">An instance of <see cref="IMobileServiceLocalStore"/></param>
 internal static void DefineTable(MobileServiceLocalStore store)
 {
     store.DefineTable(MobileServiceLocalSystemTables.OperationQueue, new JObject()
     {
         { MobileServiceSystemColumns.Id, String.Empty },
         { "kind", 0 },
         { "state", 0 },
         { "tableName", String.Empty },
         { "tableKind", 0 },
         { "itemId", String.Empty },
         { "item", String.Empty },
         { MobileServiceSystemColumns.CreatedAt, DateTime.Now },
         { "sequence", 0 },
         { "version", 0 }
     });
 }
コード例 #5
0
 /// <summary>
 ///  Defines all the system tables on the store
 /// </summary>
 /// <param name="store">An instance of <see cref="IMobileServiceLocalStore"/></param>
 public static void DefineAll(MobileServiceLocalStore store)
 {
     MobileServiceTableOperation.DefineTable(store);
     MobileServiceTableOperationError.DefineTable(store);
     MobileServiceSyncSettingsManager.DefineTable(store);
 }
 /// <summary>
 /// Defines the the table for storing operations
 /// </summary>
 /// <param name="store">An instance of <see cref="IMobileServiceLocalStore"/></param>
 internal static void DefineTable(MobileServiceLocalStore store)
 {
     store.DefineTable(MobileServiceLocalSystemTables.OperationQueue, new JObject()
     {
         { MobileServiceSystemColumns.Id, String.Empty },
         { "kind", 0 },
         { "state", 0 },
         { "tableName", String.Empty },
         { "tableKind", 0 },
         { "itemId", String.Empty },
         { "item", String.Empty },
         { MobileServiceSystemColumns.CreatedAt, DateTime.Now },
         { "sequence", 0 },
         { "version", 0 }
     });
 }
 /// <summary>
 ///  Defines all the system tables on the store
 /// </summary>
 /// <param name="store">An instance of <see cref="IMobileServiceLocalStore"/></param>
 public static void DefineAll(MobileServiceLocalStore store)
 {
     MobileServiceTableOperation.DefineTable(store);
     MobileServiceTableOperationError.DefineTable(store);
     MobileServiceSyncSettingsManager.DefineTable(store);            
 }
 /// <summary>
 /// Defines the the table for storing errors
 /// </summary>
 /// <param name="store">An instance of <see cref="IMobileServiceLocalStore"/></param>
 internal static void DefineTable(MobileServiceLocalStore store)
 {
     store.DefineTable(MobileServiceLocalSystemTables.SyncErrors, new JObject()
     {
         { MobileServiceSystemColumns.Id, String.Empty },
         { "httpStatus", 0 },
         { "operationVersion", 0 },
         { "operationKind", 0 },
         { "tableName", String.Empty },
         { "tableKind", 0 },
         { "item", String.Empty },
         { "rawResult", String.Empty }
     });
 }