示例#1
0
 public static PizzaWebApp.Models.Orderedpizzas Map(Data.Orderedpizzas orderedpizzas) => new PizzaWebApp.Models.Orderedpizzas
 {
     Orderedpizzasid     = orderedpizzas.Orderedpizzasid,
     Orderid             = orderedpizzas.Orderid,
     Pizzaname           = orderedpizzas.Pizzaname,
     Pizzaqty            = orderedpizzas.Pizzaqty,
     Pizzascost          = orderedpizzas.Pizzascost,
     PizzanameNavigation = Map(orderedpizzas.PizzanameNavigation),
     Order = Map(orderedpizzas.Order),
 };
 public static Library.Orderedpizzas Map(Orderedpizzas orderedpizzas) => new Library.Orderedpizzas
 {
     Orderedpizzasid = orderedpizzas.Orderedpizzasid,
     Meatlover       = orderedpizzas.Meatlover,
     Supreme         = orderedpizzas.Supreme,
     Hawaiian        = orderedpizzas.Hawaiian,
     Margherita      = orderedpizzas.Margherita,
     Meatloverqty    = orderedpizzas.Meatloverqty,
     Supremeqty      = orderedpizzas.Supremeqty,
     Hawaiianqty     = orderedpizzas.Hawaiianqty,
     Margheritaqty   = orderedpizzas.Margheritaqty,
     Pizzascost      = orderedpizzas.Pizzascost,
     //    MeatloverNavigation = Map(orderedpizzas.MeatloverNavigation),
     //     SupremeNavigation = Map(orderedpizzas.SupremeNavigation),
     ///   HawaiianNavigation = Map(orderedpizzas.HawaiianNavigation),
     //   MargheritaNavigation = Map(orderedpizzas.MargheritaNavigation),
     //  Orderdetails = Map(orderedpizzas.Orderdetails).ToList(),
 };