Example #1
0
 /// <summary>
 /// 要更新的字段
 /// </summary>
 /// <param name="property">实体属性表达式</param>
 /// <param name="value">值</param>
 /// <returns>更新构建器</returns>
 public SetBuilder <T> Set(Expression <Func <T, dynamic> > property, dynamic value)
 {
     set.Append(property, value);
     return(this);
 }
Example #2
0
        /// <summary>
        /// 要更新的字段
        /// </summary>
        /// <param name="property">实体属性表达式</param>
        /// <param name="value">值</param>
        /// <returns>更新构建器</returns>
        public SetBuilder <T> Set(Expression <Func <T, object> > property, object value)
        {
            __set.Append(property, value);

            return(this);
        }