/// <summary> /// 修改实体 /// </summary> /// <param name="entity">实体</param> public void Update(TEntity entity) { if (entity == null) { throw new ArgumentNullException(nameof(entity)); } var oldEntity = Find(entity.Id); _wrapper.Update(entity, oldEntity); }