コード例 #1
0
ファイル: QuoteComments.cs プロジェクト: Anovi-Soft/WebLast
 public void AddComment(IPrincipal user, int idQuote, string Message)
 {
     var time = DateTime.Now;
     var comment = new QuoteComment
     {
         UserId = user.Identity.GetUserId(),
         UserName = user.Identity.GetUserName(),
         CreateTime = time,
         UpdateTime = time,
         Quote = idQuote,
         Comment = Validate(Message)
     };
     lock (syncSubmit) db.QuoteComments.InsertOnSubmit(comment);
     Submit();
 }
コード例 #2
0
 partial void UpdateQuoteComment(QuoteComment instance);
コード例 #3
0
 partial void DeleteQuoteComment(QuoteComment instance);
コード例 #4
0
 partial void InsertQuoteComment(QuoteComment instance);