コード例 #1
0
        /// <summary>
        /// Updates the void.
        /// </summary>
        /// <param name="updated">The updated.</param>
        /// <param name="key">The key.</param>
        public void UpdateVoid(TDto updated, Tkey key)
        {
            try
            {
                var entity = CreateDataFromDTO(updated);

                _uow.BeginTransaction();
                _repository.Update(entity, key);
                _uow.SaveChanges();
                _uow.Commit();
                _uow.ResetObjectState();
            }
            catch (Exception ex)
            {
                _uow.Rollback();
                _logger.LogException(ex);
                throw;
            }
        }