예제 #1
0
 public static PizzaWebApp.Models.Ordereddrinks Map(Data.Ordereddrinks ordereddrinks) => new PizzaWebApp.Models.Ordereddrinks
 {
     Ordereddrinksid     = ordereddrinks.Ordereddrinksid,
     Orderid             = ordereddrinks.Orderid,
     Drinkname           = ordereddrinks.Drinkname,
     Drinkqty            = ordereddrinks.Drinkqty,
     Drinkscost          = ordereddrinks.Drinkscost,
     DrinknameNavigation = Map(ordereddrinks.DrinknameNavigation),
     Order = Map(ordereddrinks.Order),
 };
 public static Library.Ordereddrinks Map(Ordereddrinks ordereddrinks) => new Library.Ordereddrinks
 {
     Ordereddrinksid = ordereddrinks.Ordereddrinksid,
     Brisk           = ordereddrinks.Brisk,
     Merlot          = ordereddrinks.Merlot,
     Horchata        = ordereddrinks.Horchata,
     Bluemoon        = ordereddrinks.Bluemoon,
     Briskqty        = ordereddrinks.Briskqty,
     Merlotqty       = ordereddrinks.Merlotqty,
     Horchataqty     = ordereddrinks.Horchataqty,
     Bluemoonqty     = ordereddrinks.Bluemoonqty,
     Drinkscost      = ordereddrinks.Drinkscost,
     //       BluemoonNavigation = Map(ordereddrinks.BluemoonNavigation),
     //       BriskNavigation = Map(ordereddrinks.BriskNavigation),
     //       MerlotNavigation = Map(ordereddrinks.MerlotNavigation),
     //       HorchataNavigation = Map(ordereddrinks.HorchataNavigation),
     //      Orderdetails = Map(ordereddrinks.Orderdetails).ToList(),
 };