Ejemplo n.º 1
0
 /// <summary>
 /// 更新实体
 /// </summary>
 public async Task UpdateEntityAsync(EntityData entity)
 {
     _entityRepository.Update(entity);
     await _unitOfWork.CommitAsync();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 插入实体
        /// </summary>
        public async Task InsertEntityAsync(EntityData entity)
        {
            await _entityRepository.InsertAsync(entity);

            await _unitOfWork.CommitAsync();
        }