예제 #1
0
        public async Task <List <WeatherHistory> > GetItemsAsync()
        {
            var data = await Database.Table <WeatherHistory>().ToListAsync();

            if (_internalSourceCache.Count == 0)
            {
                _internalSourceCache.PopulateFrom(data.ToObservable());
            }
            return(data);
        }