Пример #1
0
 public int NewCart()
 {
     using(var context = new ECommerceDataContext(_connectionString))
     {
         Cart c = new Cart();
         c.DateCreated = DateTime.Now;
         context.Carts.InsertOnSubmit(c);
         context.SubmitChanges();
         return c.CartId;
     }
 }
Пример #2
0
 partial void UpdateCart(Cart instance);
Пример #3
0
 partial void DeleteCart(Cart instance);
Пример #4
0
 partial void InsertCart(Cart instance);