public void AddCategory(Category c)
 {
     using (ECommerceDataContext context = new ECommerceDataContext(_connectionString))
     {
         context.Categories.InsertOnSubmit(c);
         context.SubmitChanges();
     }
 }
예제 #2
0
 partial void UpdateCategory(Category instance);
예제 #3
0
 partial void DeleteCategory(Category instance);
예제 #4
0
 partial void InsertCategory(Category instance);