예제 #1
0
 public void AddCategory(Category category)
 {
     using(var context = new ECommerceDbDataContext(_conStr))
     {
         context.Categories.InsertOnSubmit(category);
         context.SubmitChanges();
     }
 }
예제 #2
0
 partial void DeleteCategory(Category instance);
예제 #3
0
 partial void UpdateCategory(Category instance);
예제 #4
0
 partial void InsertCategory(Category instance);