/// <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(Comments comments) { base.AddObject("Comments", comments); }
/// <summary> /// Create a new Comments object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="user_name">Initial value of the User_name property.</param> /// <param name="article_id">Initial value of the Article_id property.</param> /// <param name="pub_date">Initial value of the Pub_date property.</param> /// <param name="text">Initial value of the text property.</param> public static Comments CreateComments(global::System.Int32 id, global::System.String user_name, global::System.Int32 article_id, global::System.DateTime pub_date, global::System.String text) { Comments comments = new Comments(); comments.Id = id; comments.User_name = user_name; comments.Article_id = article_id; comments.Pub_date = pub_date; comments.text = text; return comments; }