/// <summary> /// Deletes an item with the specified id in the local table. /// </summary> /// <param name="store">Instance of <see cref="IMobileServiceLocalStore"/></param> /// <param name="tableName">Name of the local table.</param> /// <param name="id">Id for the object to be deleted.</param> /// <returns>A task that compltes when delete has been executed on local table.</returns> public static Task DeleteAsync(this IMobileServiceLocalStore store, string tableName, string id) { return(store.DeleteAsync(tableName, new[] { id })); }
public override Task ExecuteLocalAsync(IMobileServiceLocalStore store, JObject item) { return(store.DeleteAsync(this.TableName, this.ItemId)); }
public async Task <bool> RemoveAsync(Favorite item) { await localStore.DeleteAsync(Identifier, new List <string>() { item.Id }); return(true); }
public override Task ExecuteLocalAsync(IMobileServiceLocalStore store, JObject item) { return store.DeleteAsync(this.TableName, this.ItemId); }