コード例 #1
0
 public IEnumerable <UserProductClick> GetUserProductClicks([Parent] SponsoredProduct product, IResolverContext ctx)
 {
     return(_ovidDb.UserProductClicks.Where(m => m.ProductId == product.ProductId).ToList());
 }
コード例 #2
0
 public ProductCategory GetProductCategory([Parent] SponsoredProduct product, IResolverContext ctx)
 {
     return(_ovidDb.ProductCategories.Where(m => m.CategoryId == product.CategoryId).SingleOrDefault());
 }
コード例 #3
0
 public IEnumerable <ProductImage> GetProductImages([Parent] SponsoredProduct product, IResolverContext ctx)
 {
     return(_ovidDb.ProductImages.Where(m => m.ProductId == product.ProductId).ToList());
 }
コード例 #4
0
 public Marketer GetMarketer([Parent] SponsoredProduct product, IResolverContext ctx)
 {
     return(_ovidDb.Marketers.Where(m => m.MarketerId == product.MarkerterId).SingleOrDefault());
 }