예제 #1
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="expression"></param>
 /// <returns></returns>
 public SqlExpressionCore <T> Update(Expression <Func <object> > expression = null)
 {
     sqlGenerate.Clear();
     sqlGenerate += $"update {sqlGenerate.TableName} set ";
     SqlExpressionProvider.Update(expression, sqlGenerate);
     return(this);
 }
예제 #2
0
 protected override SqlGenerate Update(LambdaExpression expression, SqlGenerate sqlGenerate)
 {
     SqlExpressionProvider.Update(expression.Body, sqlGenerate);
     return(sqlGenerate);
 }