public int Update(Expression <Func <T, T> > updateExpression) { SqlProvider.FormatUpdate(updateExpression); return(DbCon.Execute(SqlProvider.SqlString, SqlProvider.Params)); }
public int Update(T entity) { SqlProvider.FormatUpdate(a => entity); return(DbCon.Execute(SqlProvider.SqlString, SqlProvider.Params)); }