Exemple #1
0
 public void addPost(Post post)
 {
     using (DataClasses1DataContext conn = new DataClasses1DataContext())
     {
         conn.Posts.InsertOnSubmit(post);
         conn.SubmitChanges();
     }
 }
 partial void UpdatePost(Post instance);
 partial void DeletePost(Post instance);
 partial void InsertPost(Post instance);