/// <summary> /// Create a new Article object. /// </summary> /// <param name="articleId">Initial value of the ArticleId property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="headline">Initial value of the Headline property.</param> /// <param name="mainText">Initial value of the MainText property.</param> /// <param name="sortKey">Initial value of the SortKey property.</param> public static Article CreateArticle(global::System.Int32 articleId, global::System.String title, global::System.String headline, global::System.String mainText, global::System.Int32 sortKey) { Article article = new Article(); article.ArticleId = articleId; article.Title = title; article.Headline = headline; article.MainText = mainText; article.SortKey = sortKey; return article; }
/// <summary> /// Deprecated Method for adding a new object to the Articles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToArticles(Article article) { base.AddObject("Articles", article); }