Example #1
0
 //insert
 public bool commitInsert(news_post post)
 {
     using (newsObj)
     {
         newsObj.news_posts.InsertOnSubmit(post);
         newsObj.SubmitChanges();
         return(true);
     }
 }
 partial void Updatenews_post(news_post instance);
 partial void Deletenews_post(news_post instance);
 partial void Insertnews_post(news_post instance);