Пример #1
0
 public static Mods.Orderdetails CustomdetsMap(Data.Orderdetails dets) => new Mods.Orderdetails
 {
     Orderid    = dets.Orderid,
     Customerid = dets.Customerid,
     Storeid    = dets.Storeid,
     Locationid = dets.Locationid,
     Totalcost  = dets.Totalcost,
     Dateplaced = dets.Dateplaced,
 };
Пример #2
0
 public static Mods.Orderdetails TimeorderMap(Data.Orderdetails order) => new Mods.Orderdetails
 {
     Orderid    = order.Orderid,
     Customerid = order.Customerid,
     Storeid    = order.Storeid,
     Locationid = order.Locationid,
     Totalcost  = order.Totalcost,
     Dateplaced = order.Dateplaced,
 };
Пример #3
0
 public static PizzaWebApp.Models.Orderdetails Map(Data.Orderdetails orderdetails) => new PizzaWebApp.Models.Orderdetails
 {
     Orderid       = orderdetails.Orderid,
     Customerid    = orderdetails.Customerid,
     Storeid       = orderdetails.Storeid,
     Locationid    = orderdetails.Locationid,
     Totalcost     = orderdetails.Totalcost,
     Dateplaced    = orderdetails.Dateplaced,
     Customer      = CustomMap(orderdetails.Customer),
     Location      = Map(orderdetails.Location),
     Store         = Map(orderdetails.Store),
     History       = Map(orderdetails.History).ToList(),
     Ordereddrinks = Map(orderdetails.Ordereddrinks).ToList(),
     Orderedpizzas = Map(orderdetails.Orderedpizzas).ToList(),
     Orderedsides  = Map(orderdetails.Orderedsides).ToList(),
 };
 public static Library.Orderdetails Map(Orderdetails orderdetails) => new Library.Orderdetails
 {
     Orderid    = orderdetails.Orderid,
     Customerid = orderdetails.Customerid,
     Storeid    = orderdetails.Storeid,
     Locationid = orderdetails.Locationid,
     Osid       = orderdetails.Osid,
     Opid       = orderdetails.Opid,
     Odid       = orderdetails.Odid,
     Totalcost  = orderdetails.Totalcost,
     Dateplaced = orderdetails.Dateplaced,
     //    Customer = Map(orderdetails.Customer),
     //    Location = Map(orderdetails.Location),
     //   Od = Map(orderdetails.Od),
     //  Op = Map(orderdetails.Op),
     //  Os = Map(orderdetails.Os),
     //  Store = Map(orderdetails.Store),
     //  History = Map(orderdetails.History).ToList(),
 };