public int Execute(string tableName) { return(dataBase.ExecuteNonQuery("UPDATE [" + tableName + "] SET " + sb.ToString().TrimStart(','), pars.ToArray())); }
public int Execute(string tableName) { return(dataBase.ExecuteNonQuery("INSERT INTO [" + tableName + "](" + field.ToString().TrimStart(',') + ") VALUES(" + values.ToString().TrimStart(',') + ")", pars.ToArray())); }
public static int ExecuteEntity(DbHelper db, string sql, CommandType commandType, object entity) { return(db.ExecuteNonQuery(sql, commandType, GetParameters(db, entity))); }