Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Comment object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="blogID">Initial value of the BlogID property.</param>
 /// <param name="authorName">Initial value of the AuthorName property.</param>
 /// <param name="authorEmail">Initial value of the AuthorEmail property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 /// <param name="postedAt">Initial value of the PostedAt property.</param>
 /// <param name="isSiteAdmin">Initial value of the IsSiteAdmin property.</param>
 public static Comment CreateComment(global::System.Int32 id, global::System.Int32 blogID, global::System.String authorName, global::System.String authorEmail, global::System.String text, global::System.DateTime postedAt, global::System.Boolean isSiteAdmin)
 {
     Comment comment = new Comment();
     comment.ID = id;
     comment.BlogID = blogID;
     comment.AuthorName = authorName;
     comment.AuthorEmail = authorEmail;
     comment.Text = text;
     comment.PostedAt = postedAt;
     comment.IsSiteAdmin = isSiteAdmin;
     return comment;
 }