コード例 #1
0
 /// <summary>
 /// Saves context changes
 /// </summary>
 public Task SaveAsync()
 {
     try
     {
         return(_context.SaveChangesAsync());
     }
     catch (DbEntityValidationException e)
     {
         LogEntityValidationErrors(e.EntityValidationErrors);
         throw;
     }
 }