Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BlogMenuItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBlogMenuItems(BlogMenuItem blogMenuItem)
 {
     base.AddObject("BlogMenuItems", blogMenuItem);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new BlogMenuItem object.
 /// </summary>
 /// <param name="blogMenuItemId">Initial value of the BlogMenuItemId property.</param>
 /// <param name="blogConfigId">Initial value of the BlogConfigId property.</param>
 /// <param name="isView">Initial value of the IsView property.</param>
 /// <param name="menuItemOrder">Initial value of the MenuItemOrder property.</param>
 /// <param name="creatorId">Initial value of the CreatorId property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="lastUpdatedById">Initial value of the LastUpdatedById property.</param>
 /// <param name="lastUpdateDate">Initial value of the LastUpdateDate property.</param>
 public static BlogMenuItem CreateBlogMenuItem(global::System.Int32 blogMenuItemId, global::System.Int32 blogConfigId, global::System.Boolean isView, global::System.Int32 menuItemOrder, global::System.Int32 creatorId, global::System.DateTime createDate, global::System.Int32 lastUpdatedById, global::System.DateTime lastUpdateDate)
 {
     BlogMenuItem blogMenuItem = new BlogMenuItem();
     blogMenuItem.BlogMenuItemId = blogMenuItemId;
     blogMenuItem.BlogConfigId = blogConfigId;
     blogMenuItem.IsView = isView;
     blogMenuItem.MenuItemOrder = menuItemOrder;
     blogMenuItem.CreatorId = creatorId;
     blogMenuItem.CreateDate = createDate;
     blogMenuItem.LastUpdatedById = lastUpdatedById;
     blogMenuItem.LastUpdateDate = lastUpdateDate;
     return blogMenuItem;
 }
Esempio n. 3
0
 public void Delete(BlogMenuItem blogMenuItem)
 {
     db.BlogMenuItems.DeleteObject(blogMenuItem);
 }
Esempio n. 4
0
 public static BlogMenuItem GetFakeBlogMenuItem(int blogConfigId)
 {
     BlogMenuItem blogMenuItem = new BlogMenuItem()
     {
         BlogConfigId = blogConfigId,
         CreateDate = DateTime.Now,
         IsView = false,
         LastUpdateDate = DateTime.Now,
         LinkText = "test",
         LinkUrl = "test",
         MenuItemOrder = 0,
         PageContent = "test",
         ViewName = "test"
     };
     return blogMenuItem;
 }
Esempio n. 5
0
 public void Add(BlogMenuItem blogMenuItem)
 {
     db.BlogMenuItems.AddObject(blogMenuItem);
 }