コード例 #1
0
 public static Data.Inventorypizzas StoreinventMap(Mods.Inventorypizzas inventpizzas) => new Data.Inventorypizzas
 {
     Storeid        = inventpizzas.Storeid,
     Pizzaname      = inventpizzas.Pizzaname,
     Itemamount     = inventpizzas.Itemamount,
     Inventpizzasid = inventpizzas.Inventpizzasid,
 };
コード例 #2
0
 public static Data.Inventorypizzas UpdateMap(PizzaWebApp.Models.Inventorypizzas inventorypizzas) => new Data.Inventorypizzas
 {
     Storeid        = inventorypizzas.Storeid,
     Pizzaname      = inventorypizzas.Pizzaname,
     Itemamount     = inventorypizzas.Itemamount,
     Inventpizzasid = inventorypizzas.Inventpizzasid,
 };
コード例 #3
0
 public void Updateinventpizza(Mods.Inventorypizzas inventpizzas)
 {
     Data.Inventorypizzas changedpizzainvent = UpdateMap(inventpizzas);
     _db.Update(changedpizzainvent);
     Save();
 }