Exemplo n.º 1
0
 public Cart(Guid cartID)
 {
     _context = new SmartNerdDataContext();
     _order = (from o in _context.Orders
               where o.CartID == cartID
               select o).First();
 }
Exemplo n.º 2
0
 public Cart(Guid cartID)
 {
     _context = new SmartNerdDataContext();
     _order   = (from o in _context.Orders
                 where o.CartID == cartID
                 select o).First();
 }
Exemplo n.º 3
0
 public Cart()
 {
     _context = new SmartNerdDataContext();
     _order = new DataModels.Order();
     _context.Orders.InsertOnSubmit(_order);
 }
Exemplo n.º 4
0
 public Cart()
 {
     _context = new SmartNerdDataContext();
     _order   = new DataModels.Order();
     _context.Orders.InsertOnSubmit(_order);
 }