/// <summary>
 /// Deprecated Method for adding a new object to the MenuItem EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMenuItem(MenuItems menuItems)
 {
     base.AddObject("MenuItem", menuItems);
 }
 /// <summary>
 /// Create a new MenuItems object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="pId">Initial value of the PId property.</param>
 /// <param name="pName">Initial value of the PName property.</param>
 /// <param name="level">Initial value of the Level property.</param>
 /// <param name="uRL">Initial value of the URL property.</param>
 /// <param name="index">Initial value of the Index property.</param>
 /// <param name="iconStyle">Initial value of the IconStyle property.</param>
 public static MenuItems CreateMenuItems(global::System.Int32 id, global::System.String name, global::System.Int32 pId, global::System.String pName, global::System.Int32 level, global::System.String uRL, global::System.Int32 index, global::System.String iconStyle)
 {
     MenuItems menuItems = new MenuItems();
     menuItems.Id = id;
     menuItems.Name = name;
     menuItems.PId = pId;
     menuItems.PName = pName;
     menuItems.Level = level;
     menuItems.URL = uRL;
     menuItems.Index = index;
     menuItems.IconStyle = iconStyle;
     return menuItems;
 }