コード例 #1
0
 public async Task CommitAsync()
 {
     try
     {
         await context.SaveChangesAsync();
     }
     catch (DbUpdateException ex)
     {
         throw exceptionHelper.TranslateToException(ex);
     }
 }