/// <summary>物理移除</summary> /// <param name="id">主键</param> public virtual void Remove(TKey id) { Remove(new DirectSpecification <TAggregateRoot>(x => x.Id.ToString() == id.ToString())); _unitOfWork.SaveChanges(); }