Exemple #1
0
 //
 public Order()
 {
     OrderId   = Guid.NewGuid().ToString();
     Customer  = new Customer();
     ItemList  = new iList <OrderItem>();
     CreatTime = DateTime.Now;
 }
Exemple #2
0
 public Order(iList <OrderItem> list) : this()
 {
     this.ItemList = new iList <OrderItem>();
     foreach (object o in list)
     {
         this.ItemList.Add(o as OrderItem);
     }
 }
Exemple #3
0
 public Order(string costumer, iList <OrderItem> list) : this()
 {
     this.Customer.Name = costumer;
     this.ItemList      = new iList <OrderItem>();
     foreach (object o in list)
     {
         this.ItemList.Add(o as OrderItem);
     }
 }