/// <summary> /// Create a new Comment object. /// </summary> /// <param name="commentId">Initial value of the CommentId property.</param> /// <param name="createdOn">Initial value of the CreatedOn property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> public static Comment CreateComment(global::System.Int32 commentId, global::System.DateTime createdOn, global::System.Guid createdBy) { Comment comment = new Comment(); comment.CommentId = commentId; comment.CreatedOn = createdOn; comment.CreatedBy = createdBy; return comment; }
/// <summary> /// Deprecated Method for adding a new object to the Comments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToComments(Comment comment) { base.AddObject("Comments", comment); }