/// <summary> /// Removes the specified item. /// </summary> /// <param name="item">The item.</param> public virtual void Delete(T item) { if (item != (T)null) { uow.Delete(item); //GetObjectSet().DeleteObject(item); } else { iPow.Infrastructure.Data.LoggerReopsitoryManager.AddLogInfo(1, 0, string.Empty, string.Empty, "delete object is null " + typeof(T).ToString(), string.Empty, string.Empty); } }
/// <summary>逻辑删除</summary> /// <param name="item">The item.</param> public virtual void Delete(TAggregateRoot item) { _unitOfWork.Delete <TAggregateRoot>(item); _unitOfWork.SaveChanges(); }