var table = client.GetSyncTable(); var item = await table.LookupAsync("itemId"); item.Text = "New text"; await table.UpdateAsync(item);
var table = client.GetSyncTableIn the above example, we obtain a reference to the sync table for a ToDoItem entity. We then retrieve all incomplete items from the remote table using a LINQ query and iterate through each record using a foreach loop. For each item, we set its Complete property to true and call the UpdateAsync method to update the record in the remote table and synchronize the change with other clients. Package library: Microsoft.Azure.Mobile.Client.Sync (version 4.0.0 or higher)(); var items = await table.Where(item => item.Complete == false).ToEnumerableAsync(); foreach (var item in items) { item.Complete = true; await table.UpdateAsync(item); }