예제 #1
0
 public static int InsertCategory(
     string categoryName, 
     string categoryDescription, 
     string categoryImage, 
     string categoryParallax
     )
 {
     var cat = new Category()
     {
         CategoryName = categoryName,
         CategoryDescription = categoryDescription,
         CategoryImage = categoryImage,
         CategoryParallax = categoryParallax
     };
     db.Categories.InsertOnSubmit(cat);
     db.SubmitChanges();
     return 1;
 }
예제 #2
0
 partial void UpdateCategory(Category instance);
예제 #3
0
 partial void DeleteCategory(Category instance);
예제 #4
0
 partial void InsertCategory(Category instance);