示例#1
0
 /// <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;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BlogPages EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBlogPages(BlogPage blogPage)
 {
     base.AddObject("BlogPages", blogPage);
 }
示例#3
0
 public void Delete(BlogPage blogPage)
 {
     db.BlogPages.DeleteObject(blogPage);
 }
示例#4
0
 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;
 }
示例#5
0
 public void Add(BlogPage blogPage)
 {
     db.BlogPages.AddObject(blogPage);
 }