/// <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 } }); }
/// <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 } }); }