コード例 #1
0
 public static PizzaWebApp.Models.Pizzas Map(Data.Pizzas pizzas) => new PizzaWebApp.Models.Pizzas
 {
     Name            = pizzas.Name,
     Cost            = pizzas.Cost,
     Inventorypizzas = Map(pizzas.Inventorypizzas).ToList(),
     Orderedpizzas   = Map(pizzas.Orderedpizzas).ToList(),
 };
コード例 #2
0
 public static Library.Pizzas Map(Pizzas pizzas) => new Library.Pizzas
 {
     Name = pizzas.Name,
     Cost = pizzas.Cost,
     //  Inventorypizzas = Map(pizzas.Inventorypizzas).ToList(),
     //  OrderedpizzasMeatloverNavigation = Map(pizzas.OrderedpizzasMeatloverNavigation).ToList(),
     //   OrderedpizzasSupremeNavigation = Map(pizzas.OrderedpizzasSupremeNavigation).ToList(),
     //    OrderedpizzasHawaiianNavigation = Map(pizzas.OrderedpizzasHawaiianNavigation).ToList(),
     //      OrderedpizzasMargheritaNavigation = Map(pizzas.OrderedpizzasMargheritaNavigation).ToList(),
 };