示例#1
0
 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);