Ejemplo n.º 1
0
 public static int MassIncreasePrice(this IQueryable <Product> products, MassIncreasePrice command) =>
 products
 .BatchUpdate(Product.BatchUpdates.MassIncreasePrice(command));
Ejemplo n.º 2
0
 public Expression <Func <Product, Product> > MassIncreasePrice(MassIncreasePrice command) =>
 x => new Product
 {
     Name  = x.Name,
     Price = x.Price + command.Price
 };