Beispiel #1
0
 //
 public Order()
 {
     OrderId   = Guid.NewGuid().ToString();
     Customer  = new Customer();
     ItemList  = new iList <OrderItem>();
     CreatTime = DateTime.Now;
 }
Beispiel #2
0
 public Order(iList <OrderItem> list) : this()
 {
     this.ItemList = new iList <OrderItem>();
     foreach (object o in list)
     {
         this.ItemList.Add(o as OrderItem);
     }
 }
Beispiel #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);
     }
 }