/// <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="customerID">Initial value of the CustomerID property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="reviewTitle">Initial value of the ReviewTitle property.</param> /// <param name="reviewDescription">Initial value of the ReviewDescription property.</param> /// <param name="reviewDate">Initial value of the ReviewDate property.</param> public static Review CreateReview(global::System.Int32 reviewID, global::System.Int32 customerID, global::System.Int32 productID, global::System.String reviewTitle, global::System.String reviewDescription, global::System.DateTime reviewDate) { Review review = new Review(); review.ReviewID = reviewID; review.CustomerID = customerID; review.ProductID = productID; review.ReviewTitle = reviewTitle; review.ReviewDescription = reviewDescription; review.ReviewDate = reviewDate; return review; }