Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Reviews EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToReviews(Review review)
 {
     base.AddObject("Reviews", review);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Review object.
 /// </summary>
 /// <param name="reviewID">Initial value of the ReviewID property.</param>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="rating">Initial value of the Rating property.</param>
 public static Review CreateReview(global::System.Int32 reviewID, global::System.Int32 productID, global::System.Int32 rating)
 {
     Review review = new Review();
     review.ReviewID = reviewID;
     review.ProductID = productID;
     review.Rating = rating;
     return review;
 }