/// <summary> /// Create a new MenuItem object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="price">Initial value of the Price property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="active">Initial value of the Active property.</param> public static MenuItem CreateMenuItem(global::System.Int32 id, global::System.String name, global::System.Int32 userId, global::System.Double price, global::System.String description, global::System.Boolean active) { MenuItem menuItem = new MenuItem(); menuItem.Id = id; menuItem.Name = name; menuItem.UserId = userId; menuItem.Price = price; menuItem.Description = description; menuItem.Active = active; return menuItem; }
/// <summary> /// Deprecated Method for adding a new object to the MenuItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMenuItems(MenuItem menuItem) { base.AddObject("MenuItems", menuItem); }