Beispiel #1
0
        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();
        }
Beispiel #2
0
 partial void UpdateComment(Comment instance);
Beispiel #3
0
 partial void DeleteComment(Comment instance);
Beispiel #4
0
 partial void InsertComment(Comment instance);