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