Esempio n. 1
0
        public async Task <List <OrderDetail> > GetAsync(Order order)
        {
            SetQuery("detailOnOrderId", SyncTable
                     .CreateQuery()
                     .Where(od => od.OrderId == order.Id));
            await SyncAsync();

            return(await GetAsync());
        }
        public async Task Sync()
        {
            try
            {
                //if (!_connectivity.IsConnected) return;

                await SyncTable.PullAsync($"KinderRegistration", SyncTable.CreateQuery());

                await MobileService.SyncContext.PushAsync();
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Unable to sync coffees, that is alright as we have offline capabilities: " + ex);
            }
        }