public virtual void Update(TRecord record) { using (var unitOfWork = new UnitOfWorkProvider(this.unitOfWorkContext)) { unitOfWork.Attach(record); } }