/// <summary> /// 更新记录 /// </summary> public virtual void Update <T>(Expression <Func <T, object> > updateExpression, Expression <Func <T, bool> > predicate) { IDbQueryable <T> source = this.GetTable <T>(); this.Update <T>((Expression)updateExpression, source.Where(predicate)); }
/// <summary> /// 删除记录 /// </summary> public void Delete <T>(Expression <Func <T, bool> > predicate) { IDbQueryable <T> query = this.GetTable <T>(); this.Delete <T>(query.Where(predicate)); }