/// <summary> /// Deprecated Method for adding a new object to the ItemContents EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToItemContents(ItemContent itemContent) { base.AddObject("ItemContents", itemContent); }
/// <summary> /// Create a new ItemContent object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="itemId">Initial value of the ItemId property.</param> /// <param name="languageId">Initial value of the LanguageId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="created">Initial value of the Created property.</param> public static ItemContent CreateItemContent(global::System.Int32 id, global::System.Int32 itemId, global::System.Int32 languageId, global::System.String name, global::System.DateTime created) { ItemContent itemContent = new ItemContent(); itemContent.Id = id; itemContent.ItemId = itemId; itemContent.LanguageId = languageId; itemContent.Name = name; itemContent.Created = created; return itemContent; }