public void CommentOnResource(int resourceId, int userId, string content) { Comment comment = new Comment { ResourceId = resourceId, UserId = userId, Content = content, MarkForDelete = false, CreateTime = DateTime.Now }; context.Comments.InsertOnSubmit(comment); context.SubmitChanges(); }
partial void UpdateComment(Comment instance);
partial void DeleteComment(Comment instance);
partial void InsertComment(Comment instance);