/// <summary> /// Create a new comment object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="text">Initial value of the Text property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="owner">Initial value of the Owner property.</param> /// <param name="photoId">Initial value of the PhotoId property.</param> public static comment Createcomment(global::System.Guid id, global::System.String text, global::System.DateTime date, global::System.Guid owner, global::System.Guid photoId) { comment comment = new comment(); comment.Id = id; comment.Text = text; comment.Date = date; comment.Owner = owner; comment.PhotoId = photoId; 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); }