Пример #1
0
 /// <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));
 }
Пример #2
0
        /// <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));
        }
Пример #3
0
 /// <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));
 }