Class ManufacturerService
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
public class ManufacturerService : ICacheStorage<string, Manufacturer>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
ManufacturerService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<string> keys)
Parameters
keysIEnumerable<string>Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(string key)
Parameters
keystringKey to reset
Delete(Manufacturer)
public virtual void Delete(Manufacturer manufacturer)
Parameters
manufacturerManufacturer
GetManufacturerById(string)
public virtual Manufacturer? GetManufacturerById(string manufacturerId)
Parameters
manufacturerIdstring
Returns
GetManufacturers()
public virtual IEnumerable<Manufacturer> GetManufacturers()
Returns
Save(Manufacturer)
public virtual void Save(Manufacturer manufacturer)
Parameters
manufacturerManufacturer
SetCacheType<TObjectCache>()
Changes the storage container
public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, Manufacturer>
Type Parameters
TObjectCache