Exemplo n.º 1
0
 /// <summary>
 /// Create a new Comment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="blogId">Initial value of the BlogId property.</param>
 /// <param name="feedbackType">Initial value of the FeedbackType property.</param>
 /// <param name="statusFlag">Initial value of the StatusFlag property.</param>
 /// <param name="commentAPI">Initial value of the CommentAPI property.</param>
 /// <param name="feedbackChecksumHash">Initial value of the FeedbackChecksumHash property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="dateModified">Initial value of the DateModified property.</param>
 public static Comment CreateComment(global::System.Int32 id, global::System.String title, global::System.Int32 blogId, global::System.Int32 feedbackType, global::System.Int32 statusFlag, global::System.Boolean commentAPI, global::System.String feedbackChecksumHash, global::System.DateTime dateCreated, global::System.DateTime dateModified)
 {
     Comment comment = new Comment();
     comment.Id = id;
     comment.Title = title;
     comment.BlogId = blogId;
     comment.FeedbackType = feedbackType;
     comment.StatusFlag = statusFlag;
     comment.CommentAPI = commentAPI;
     comment.FeedbackChecksumHash = feedbackChecksumHash;
     comment.DateCreated = dateCreated;
     comment.DateModified = dateModified;
     return comment;
 }
Exemplo 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);
 }