コード例 #1
0
ファイル: ResourceManager.cs プロジェクト: Oldsooh/SHTS
        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();
        }
コード例 #2
0
ファイル: LinqToShts.designer.cs プロジェクト: Oldsooh/SHTS
 partial void UpdateComment(Comment instance);
コード例 #3
0
ファイル: LinqToShts.designer.cs プロジェクト: Oldsooh/SHTS
 partial void DeleteComment(Comment instance);
コード例 #4
0
ファイル: LinqToShts.designer.cs プロジェクト: Oldsooh/SHTS
 partial void InsertComment(Comment instance);