private void Button_Click(object sender, RoutedEventArgs e) { Review lReview = new Review() { MediaItemTitle = this.MediaTitleInput.Text, ReviewTitle = this.ReviewTitleInput.Text, Comments = this.CommentInput.Text, UPC = this.UPCInput.Text }; Model.AddReview(lReview); }
public void AddReview(Review pReview) { Provider.AddReview(pReview); }
/// <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); }
public void AddReview(Review pReview) { sReviewCollection.Add(pReview); }
/// <summary> /// Create a new Review object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="reviewTitle">Initial value of the ReviewTitle property.</param> /// <param name="comments">Initial value of the Comments property.</param> /// <param name="mediaItemTitle">Initial value of the MediaItemTitle property.</param> /// <param name="uPC">Initial value of the UPC property.</param> public static Review CreateReview(global::System.Int32 id, global::System.String reviewTitle, global::System.String comments, global::System.String mediaItemTitle, global::System.String uPC) { Review review = new Review(); review.Id = id; review.ReviewTitle = reviewTitle; review.Comments = comments; review.MediaItemTitle = mediaItemTitle; review.UPC = uPC; return review; }