/// <summary> 更新 </summary> /// <param name="model"></param> /// <param name="props"></param> /// <returns></returns> public int Update(T model, string[] props = null) { return(TransConnection.Update(model, props, Trans)); }
/// <summary> 更新 </summary> /// <param name="model"></param> /// <param name="props"></param> /// <returns></returns> public int Update(T model, Expression <Func <T, object> > propExpression) { var props = propExpression.MemberNames()?.ToArray(); return(TransConnection.Update(model, props, Trans)); }
/// <summary> 批量更新 </summary> /// <param name="model"></param> /// <param name="props"></param> /// <returns></returns> public int Update(IEnumerable <T> models, string[] props = null) { return(TransConnection.Update(models, props, Trans)); }