Skip to content

Instantly share code, notes, and snippets.

@guntidheerajkumar
Created November 22, 2016 10:00
Show Gist options
  • Save guntidheerajkumar/074c5ee284fe9700eb47b94240bfadb4 to your computer and use it in GitHub Desktop.
Save guntidheerajkumar/074c5ee284fe9700eb47b94240bfadb4 to your computer and use it in GitHub Desktop.
public async Task<List<EmployeeInfo>> GetEmployees()
{
await Initialize();
await SyncEmployees();
return await table.ToListAsync();
}
public async Task SyncEmployees()
{
await client.SyncContext.PushAsync();
await table.PullAsync("allEmployees", table.CreateQuery());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment