예제 #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);