/// <summary> /// Deprecated Method for adding a new object to the HtmlContents EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHtmlContents(HtmlContent htmlContent) { base.AddObject("HtmlContents", htmlContent); }
/// <summary> /// Create a new HtmlContent object. /// </summary> /// <param name="itemID">Initial value of the ItemID property.</param> /// <param name="moduleID">Initial value of the ModuleID property.</param> /// <param name="body">Initial value of the Body property.</param> /// <param name="sortOrder">Initial value of the SortOrder property.</param> /// <param name="beginDate">Initial value of the BeginDate property.</param> /// <param name="endDate">Initial value of the EndDate property.</param> public static HtmlContent CreateHtmlContent(global::System.Int32 itemID, global::System.Int32 moduleID, global::System.String body, global::System.Int32 sortOrder, global::System.DateTime beginDate, global::System.DateTime endDate) { HtmlContent htmlContent = new HtmlContent(); htmlContent.ItemID = itemID; htmlContent.ModuleID = moduleID; htmlContent.Body = body; htmlContent.SortOrder = sortOrder; htmlContent.BeginDate = beginDate; htmlContent.EndDate = endDate; return htmlContent; }