/// <summary> /// Deprecated Method for adding a new object to the ProductReviews EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductReviews(ProductReview productReview) { base.AddObject("ProductReviews", productReview); }
/// <summary> /// Create a new ProductReview object. /// </summary> /// <param name="productReviewID">Initial value of the ProductReviewID property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="reviewerName">Initial value of the ReviewerName property.</param> /// <param name="reviewDate">Initial value of the ReviewDate property.</param> /// <param name="emailAddress">Initial value of the EmailAddress property.</param> /// <param name="rating">Initial value of the Rating property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static ProductReview CreateProductReview(global::System.Int32 productReviewID, global::System.Int32 productID, global::System.String reviewerName, global::System.DateTime reviewDate, global::System.String emailAddress, global::System.Int32 rating, global::System.DateTime modifiedDate) { ProductReview productReview = new ProductReview(); productReview.ProductReviewID = productReviewID; productReview.ProductID = productID; productReview.ReviewerName = reviewerName; productReview.ReviewDate = reviewDate; productReview.EmailAddress = emailAddress; productReview.Rating = rating; productReview.ModifiedDate = modifiedDate; return productReview; }