/// <summary> /// Deprecated Method for adding a new object to the ItemCategory EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToItemCategory(ItemCategory itemCategory) { base.AddObject("ItemCategory", itemCategory); }
/// <summary> /// Create a new ItemCategory object. /// </summary> /// <param name="itemId">Initial value of the ItemId property.</param> /// <param name="itemType">Initial value of the ItemType property.</param> /// <param name="categoryId">Initial value of the CategoryId property.</param> /// <param name="itemCategoryId">Initial value of the ItemCategoryId property.</param> public static ItemCategory CreateItemCategory(global::System.Int32 itemId, global::System.Byte itemType, global::System.Int32 categoryId, global::System.Int32 itemCategoryId) { ItemCategory itemCategory = new ItemCategory(); itemCategory.ItemId = itemId; itemCategory.ItemType = itemType; itemCategory.CategoryId = categoryId; itemCategory.ItemCategoryId = itemCategoryId; return itemCategory; }