/// <summary> /// Deprecated Method for adding a new object to the Pages EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPages(Page page) { base.AddObject("Pages", page); }
/// <summary> /// Create a new Page object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="updated">Initial value of the Updated property.</param> /// <param name="published">Initial value of the Published property.</param> /// <param name="homePage">Initial value of the HomePage property.</param> /// <param name="isPublished">Initial value of the IsPublished property.</param> /// <param name="votes">Initial value of the Votes property.</param> public static Page CreatePage(global::System.Int32 id, global::System.DateTime created, global::System.DateTime updated, global::System.DateTime published, global::System.Boolean homePage, global::System.Boolean isPublished, global::System.Int32 votes) { Page page = new Page(); page.Id = id; page.Created = created; page.Updated = updated; page.Published = published; page.HomePage = homePage; page.IsPublished = isPublished; page.Votes = votes; return page; }