コード例 #1
0
        public async Task <bool> SaveChangesAsync()
        {
            _logger.LogInformation($"Attempitng to save the changes in the context");

            // Only return success if at least one row was changed
            return((await _context.SaveChangesAsync()) > 0);
        }
コード例 #2
0
 public async Task <bool> SaveChangesAsync()
 {
     _logger.LogInformation($"Attempitng to save the changes in the context");
     return(await _context.SaveChangesAsync() > 0);
 }