Class RelatedSmartSearch
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
The class RelatedSmartSearch represents product related smart searches.
[Serializable]
[Obsolete("Related smart searches are no longer used.")]
public class RelatedSmartSearch
- Inheritance
-
RelatedSmartSearch
- Inherited Members
Constructors
RelatedSmartSearch()
Empty constructor
public RelatedSmartSearch()
RelatedSmartSearch(Group, Guid)
Initializes a new instance of the group related smart search.
public RelatedSmartSearch(Group group, Guid smartSearchId)
Parameters
RelatedSmartSearch(Product, Guid)
Initializes a new instance of the product related smart search.
public RelatedSmartSearch(Product product, Guid smartSearchId)
Parameters
RelatedSmartSearch(IDataReader)
Initializes a new instance of the ProductRelatedGroup class.
public RelatedSmartSearch(IDataReader dataReader)
Parameters
dataReader
IDataReader- DataReader.
RelatedSmartSearch(string, string, string, Guid)
Initializes a new instance of the product or group related smart search.
public RelatedSmartSearch(string groupId, string productId, string languageId, Guid smartSearchId)
Parameters
groupId
string- Group ID.
productId
string- Product ID.
languageId
string- Lang ID.
smartSearchId
Guid- Smart search ID.
Properties
GroupId
Gets or sets the group ID.
public string GroupId { get; set; }
Property Value
- string
- The group ID.
LanguageId
Gets or sets the language ID.
public string LanguageId { get; set; }
Property Value
- string
- The language ID.
ProductId
Gets or sets the product ID.
public string ProductId { get; set; }
Property Value
- string
- The product ID.
SmartSearchId
Gets or sets the smart search ID.
public Guid SmartSearchId { get; set; }
Property Value
- Guid
- The smart search ID.
Methods
ClearCache()
Clears related smart searches cache.
public static void ClearCache()
Delete()
Deletes this instance from DB.
public void Delete()
GetRelatedSmartSearchesByGroup(string, string)
Gets the related mart search collection by group.
public static RelatedSmartSearchCollection GetRelatedSmartSearchesByGroup(string groupId, string languageId)
Parameters
Returns
GetRelatedSmartSearchesByProduct(string)
Gets the related mart search collection by product.
public static RelatedSmartSearchCollection GetRelatedSmartSearchesByProduct(string productId)
Parameters
productId
string- The product ID.
Returns
Save()
Saves the properties into DB.
public void Save()
Save(RelatedSmartSearchCollection, RelatedSmartSearchCollection)
Save data in database
public static void Save(RelatedSmartSearchCollection previousSearches, RelatedSmartSearchCollection newSearches)
Parameters
previousSearches
RelatedSmartSearchCollection- Previous related smart searches
newSearches
RelatedSmartSearchCollection- New related smart searches
SetProperties()
Sets empty data.
public void SetProperties()