示例#1
0
 public FindProduct(EntryContentBase entryContentBase, string language)
 {
     IndexId            = entryContentBase.ContentLink.ID + "_" + language;
     Id                 = entryContentBase.ContentLink.ID;
     Code               = entryContentBase.Code;
     Name               = entryContentBase.Name;
     DisplayName        = entryContentBase.DisplayName;
     Language           = language;
     Description        = Description ?? null;
     Overview           = Overview ?? null;
     ParentCategoryId   = entryContentBase.GetProductCategoryIds(language);
     ParentCategoryName = entryContentBase.GetParentCategoryNames(language);
     MainCategoryName   = entryContentBase.GetMainCategory(language);
     CategoryName       = entryContentBase.GetCategoryName(language);
     ProductUrl         = _urlResolver.Service.GetUrl(entryContentBase.ContentLink, language);
     DefaultImageUrl    = entryContentBase.GetDefaultImage();
     AverageRating      = entryContentBase.GetAverageRating();
     DefaultInventory   = entryContentBase.GetStock();
 }
 public FindProduct(EntryContentBase entryContentBase, string language)
 {
     IndexId = entryContentBase.ContentLink.ID + "_" + language;
     Id = entryContentBase.ContentLink.ID;
     Code = entryContentBase.Code;
     Name = entryContentBase.Name;
     DisplayName = entryContentBase.DisplayName;
     Language = language;
     Description = Description ?? null;
     Overview = Overview ?? null;
     ParentCategoryId = entryContentBase.GetProductCategoryIds(language);
     ParentCategoryName = entryContentBase.GetParentCategoryNames(language);
     MainCategoryName = entryContentBase.GetMainCategory(language);
     CategoryName = entryContentBase.GetCategoryName(language);
     ProductUrl = _urlResolver.Service.GetUrl(entryContentBase.ContentLink, language);
     DefaultImageUrl = entryContentBase.GetDefaultImage();
     AverageRating = entryContentBase.GetAverageRating();
     DefaultInventory = entryContentBase.GetStock();
 }