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