示例#1
0
        public void SalvarAlteracoes()
        {
            while (AcoesPrevias.Any())
            {
                AcoesPrevias.Dequeue().Invoke();
            }

            _context.SaveChanges();

            while (AcoesPosteriores.Any())
            {
                AcoesPosteriores.Dequeue().Invoke();
            }
        }
示例#2
0
        public async Task SalvarAlteracoes()
        {
            while (AcoesPrevias.Any())
            {
                AcoesPrevias.Dequeue().Invoke();
            }

            await _context.SaveChangesAsync();

            while (AcoesPosteriores.Any())
            {
                AcoesPosteriores.Dequeue().Invoke();
            }
        }