public bool InsertComment(CommentModel commentModel)
 {
     using (Entities entity = new Entities(BaseBISL.ConnectionString))
     {
         WeightMsg_Comment comment = new WeightMsg_Comment();
         comment.Comment_DateTime = DateTime.Now;
         comment.Comment_HTML = commentModel.CommentContent;
         comment.Post_ID = commentModel.PostId;
         comment.UserID = commentModel.UserId;
         entity.AddToWeightMsg_Comment(comment);
         int rows = entity.SaveChanges();
         if (rows > 0)
             return true;
         else
             return false;
     }
 }
 /// <summary>
 /// Create a new WeightMsg_Comment object.
 /// </summary>
 /// <param name="comment_ID">Initial value of the Comment_ID property.</param>
 /// <param name="post_ID">Initial value of the Post_ID property.</param>
 /// <param name="comment_DateTime">Initial value of the Comment_DateTime property.</param>
 /// <param name="comment_HTML">Initial value of the Comment_HTML property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 public static WeightMsg_Comment CreateWeightMsg_Comment(global::System.Int32 comment_ID, global::System.Int32 post_ID, global::System.DateTime comment_DateTime, global::System.String comment_HTML, global::System.Int32 userID)
 {
     WeightMsg_Comment weightMsg_Comment = new WeightMsg_Comment();
     weightMsg_Comment.Comment_ID = comment_ID;
     weightMsg_Comment.Post_ID = post_ID;
     weightMsg_Comment.Comment_DateTime = comment_DateTime;
     weightMsg_Comment.Comment_HTML = comment_HTML;
     weightMsg_Comment.UserID = userID;
     return weightMsg_Comment;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the WeightMsg_Comment EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWeightMsg_Comment(WeightMsg_Comment weightMsg_Comment)
 {
     base.AddObject("WeightMsg_Comment", weightMsg_Comment);
 }