you could do this
// C#
IExpression updateExpression =
new Expression(ShoppingCart.Quantity, ExOp.Mul, 2.0f);
ShoppingCartEntity shoppingcart = new ShoppingCartEntity();
shoppingcart.Fields[(int)ShoppingCartFieldIndex.Quantity].ExpressionToApply = updateExpression;
ShoppingCartCollection shoppingcarts = new ShoppingCartCollection();
// no filter is specified, all carts have their quantities doubled, but you could of course
// specify a filter to limit the scope of the update.
shoppingcarts.UpdateMulti(shoppingcart, null);
// the expression declaration can also be done like this:
ShoppingCartEntity shoppingcart = new ShoppingCartEntity();
shoppingcart.Fields[(int)ShoppingCartFieldIndex.Salary].ExpressionToApply =
(ShoppingCartFields.Quantity * 2.0f);
This is all ripped from the manual under the Using the entity collection classes, SelfServicing -> Updating a set of entities in the persistent storage