コード例 #1
0
 public static void Mapto1(this order_item ori, order_itemDTO ori1)
 {
     ori.id           = ori1.id;
     ori.orderTableId = ori1.orderTableId;
     ori.skuId        = ori1.skuId;
     ori.name         = ori1.name;
     ori.variation    = ori1.variation;
     ori.price        = ori1.price;
     ori.quantity     = ori1.quantity;
 }
コード例 #2
0
 public static order_item toorder_item(this order_itemDTO ori1)
 {
     return(new order_item()
     {
         id = ori1.id,
         orderTableId = ori1.orderTableId,
         skuId = ori1.skuId,
         name = ori1.name,
         variation = ori1.variation,
         price = ori1.price,
         quantity = ori1.quantity
     });
 }