Пример #1
0
        public async Task LoadData()
        {
            var con = await SQLiteService.GetDbConnection();

            var plants = await con.Table <Plant>().ToListAsync();

            Plants = plants;
            await con.CloseAsync();
        }
        public async void LoadDataAsync()
        {
            var con = await SQLiteService.GetDbConnection();

            var littleAnimals = await con.Table <LittleAnimal>().ToListAsync();

            LittleAnimals = littleAnimals;
            //LittleAnimalDeatil = LittleAnimals[0];
            await con.CloseAsync();

            TodayIsWhoBrithday(LittleAnimals);
        }