Esempio n. 1
0
        public async Task <int> UpdateAsync(T model, params Expression <Func <T, object> >[] updateExpression)
        {
            SqlProvider.FormatUpdateZhanglei(model, updateExpression);
            SetSql();
            var result = await ExecAsync(SqlProvider.SqlString, SqlProvider.Params, _dbTransaction);

            return(result);
        }
Esempio n. 2
0
 public int Update(T model, params Expression <Func <T, object> >[] updateExpression)
 {
     SqlProvider.FormatUpdateZhanglei(model, updateExpression);
     SetSql();
     return(Exec(SqlProvider.SqlString, SqlProvider.Params, _dbTransaction));
 }