/// <summary> /// Deprecated Method for adding a new object to the Reviews EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToReviews(Review review) { base.AddObject("Reviews", review); }
/// <summary> /// Create a new Review object. /// </summary> /// <param name="reviewId">Initial value of the ReviewId property.</param> /// <param name="reviewText">Initial value of the ReviewText property.</param> /// <param name="rating">Initial value of the Rating property.</param> /// <param name="dateAdded">Initial value of the DateAdded property.</param> /// <param name="isVisible">Initial value of the IsVisible property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="filmId">Initial value of the FilmId property.</param> public static Review CreateReview(global::System.Int32 reviewId, global::System.String reviewText, global::System.Int32 rating, global::System.DateTime dateAdded, global::System.Boolean isVisible, global::System.Int32 userId, global::System.Int32 filmId) { Review review = new Review(); review.ReviewId = reviewId; review.ReviewText = reviewText; review.Rating = rating; review.DateAdded = dateAdded; review.IsVisible = isVisible; review.UserId = userId; review.FilmId = filmId; return review; }