/// <summary> /// Create a new ContentHistory object. /// </summary> /// <param name="guid">Initial value of the Guid property.</param> /// <param name="siteGuid">Initial value of the SiteGuid property.</param> /// <param name="userGuid">Initial value of the UserGuid property.</param> /// <param name="contentGuid">Initial value of the ContentGuid property.</param> /// <param name="contentText">Initial value of the ContentText property.</param> /// <param name="createdUtc">Initial value of the CreatedUtc property.</param> /// <param name="historyUtc">Initial value of the HistoryUtc property.</param> public static ContentHistory CreateContentHistory(global::System.Guid guid, global::System.Guid siteGuid, global::System.Guid userGuid, global::System.Guid contentGuid, global::System.String contentText, global::System.DateTime createdUtc, global::System.DateTime historyUtc) { ContentHistory contentHistory = new ContentHistory(); contentHistory.Guid = guid; contentHistory.SiteGuid = siteGuid; contentHistory.UserGuid = userGuid; contentHistory.ContentGuid = contentGuid; contentHistory.ContentText = contentText; contentHistory.CreatedUtc = createdUtc; contentHistory.HistoryUtc = historyUtc; return contentHistory; }
/// <summary> /// Deprecated Method for adding a new object to the ContentHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContentHistories(ContentHistory contentHistory) { base.AddObject("ContentHistories", contentHistory); }