コード例 #1
0
 public void InsertProductReview(ProductReview productReview)
 {
     context.ProductReviews.Add(productReview);
 }
コード例 #2
0
        public void UpdateProductReview(ProductReview productReview)
        {
            ProductReview targetProductReview = context.ProductReviews.Find(productReview.ProductReviewID);

            if (targetProductReview != null)
            {
                targetProductReview.IsEdited = productReview.IsEdited;
                targetProductReview.IsRecommended = productReview.IsRecommended;
                targetProductReview.LastEdited = productReview.LastEdited;
                targetProductReview.ProductID = productReview.ProductID;
                targetProductReview.PostDate = productReview.PostDate;
                targetProductReview.Review = productReview.Review;
                targetProductReview.UserID = productReview.UserID;
            }
        }
コード例 #3
0
 public ActivityFeedContainer(ProductReview productReview)
 {
     ItemDate = productReview.PostDate;
     ProductReview = productReview;
 }