예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the comments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTocomments(comment comment)
 {
     base.AddObject("comments", comment);
 }
예제 #2
0
 /// <summary>
 /// Create a new comment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="user">Initial value of the User property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="comment1">Initial value of the Comment1 property.</param>
 /// <param name="memberId">Initial value of the MemberId property.</param>
 /// <param name="commentTypeId">Initial value of the CommentTypeId property.</param>
 public static comment Createcomment(global::System.Int32 id, global::System.String user, global::System.DateTime date, global::System.String comment1, global::System.Int32 memberId, global::System.Int32 commentTypeId)
 {
     comment comment = new comment();
     comment.Id = id;
     comment.User = user;
     comment.Date = date;
     comment.Comment1 = comment1;
     comment.MemberId = memberId;
     comment.CommentTypeId = commentTypeId;
     return comment;
 }