/// <summary> /// Create a new BlogPage object. /// </summary> /// <param name="blogPageId">Initial value of the BlogPageId property.</param> /// <param name="blogConfigId">Initial value of the BlogConfigId property.</param> /// <param name="encodedTitle">Initial value of the EncodedTitle property.</param> /// <param name="pageTitle">Initial value of the PageTitle property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="createdById">Initial value of the CreatedById property.</param> /// <param name="lastUpdateDate">Initial value of the LastUpdateDate property.</param> /// <param name="lastUpdatedById">Initial value of the LastUpdatedById property.</param> public static BlogPage CreateBlogPage(global::System.Int32 blogPageId, global::System.Int32 blogConfigId, global::System.String encodedTitle, global::System.String pageTitle, global::System.DateTime createDate, global::System.Int32 createdById, global::System.DateTime lastUpdateDate, global::System.Int32 lastUpdatedById) { BlogPage blogPage = new BlogPage(); blogPage.BlogPageId = blogPageId; blogPage.BlogConfigId = blogConfigId; blogPage.EncodedTitle = encodedTitle; blogPage.PageTitle = pageTitle; blogPage.CreateDate = createDate; blogPage.CreatedById = createdById; blogPage.LastUpdateDate = lastUpdateDate; blogPage.LastUpdatedById = lastUpdatedById; return blogPage; }
/// <summary> /// Deprecated Method for adding a new object to the BlogPages EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBlogPages(BlogPage blogPage) { base.AddObject("BlogPages", blogPage); }
public void Delete(BlogPage blogPage) { db.BlogPages.DeleteObject(blogPage); }
public static BlogPage GetFakeBlogPage(int blogConfigId, int blogUserId) { var blogPage = new BlogPage() { BlogConfigId = blogConfigId, CreateDate = DateTime.Now, CreatedById = blogUserId, Description = "Test", EncodedTitle = "Test", Keywords = "Test", LastUpdateDate = DateTime.Now, LastUpdatedById = blogUserId, PageContent = "Test", PageTitle = "Test" }; return blogPage; }
public void Add(BlogPage blogPage) { db.BlogPages.AddObject(blogPage); }