/// <summary> /// Create a new Rating object. /// </summary> /// <param name="ratingId">Initial value of the RatingId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="presentationId">Initial value of the PresentationId property.</param> /// <param name="value">Initial value of the Value property.</param> public static Rating CreateRating(global::System.Guid ratingId, global::System.Guid userId, global::System.Guid presentationId, global::System.Int32 value) { Rating rating = new Rating(); rating.RatingId = ratingId; rating.UserId = userId; rating.PresentationId = presentationId; rating.Value = value; return rating; }
/// <summary> /// Deprecated Method for adding a new object to the Ratings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRatings(Rating rating) { base.AddObject("Ratings", rating); }