/// <summary> /// Create a new ContentRating object. /// </summary> /// <param name="rowGuid">Initial value of the RowGuid property.</param> /// <param name="siteGuid">Initial value of the SiteGuid property.</param> /// <param name="contentGuid">Initial value of the ContentGuid property.</param> /// <param name="userGuid">Initial value of the UserGuid property.</param> /// <param name="rating">Initial value of the Rating property.</param> /// <param name="createdUtc">Initial value of the CreatedUtc property.</param> /// <param name="lastModUtc">Initial value of the LastModUtc property.</param> public static ContentRating CreateContentRating(global::System.Guid rowGuid, global::System.Guid siteGuid, global::System.Guid contentGuid, global::System.Guid userGuid, global::System.Int32 rating, global::System.DateTime createdUtc, global::System.DateTime lastModUtc) { ContentRating contentRating = new ContentRating(); contentRating.RowGuid = rowGuid; contentRating.SiteGuid = siteGuid; contentRating.ContentGuid = contentGuid; contentRating.UserGuid = userGuid; contentRating.Rating = rating; contentRating.CreatedUtc = createdUtc; contentRating.LastModUtc = lastModUtc; return contentRating; }
/// <summary> /// Deprecated Method for adding a new object to the ContentRatings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContentRatings(ContentRating contentRating) { base.AddObject("ContentRatings", contentRating); }