コード例 #1
0
        public async Task UpdateFoodCounterAsync(FoodCounter updateFood)
        {
            var entry = _context.Attach(updateFood);

            entry.State = EntityState.Modified;
            await _context.SaveChangesAsync();
        }
コード例 #2
0
        public async Task UpdateBuyListAsync(BuyList updateBuyList)
        {
            var entry = _context.Attach(updateBuyList);

            entry.State = EntityState.Modified;
            await _context.SaveChangesAsync();
        }