Esempio n. 1
0
 /// <summary>
 /// Create a new Comment object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="postID">Initial value of the PostID property.</param>
 public static Comment CreateComment(global::System.Int32 id, global::System.Int32 postID)
 {
     Comment comment = new Comment();
     comment.ID = id;
     comment.PostID = postID;
     return comment;
 }
Esempio n. 2
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);
 }