Class PriceServiceDatabase
Represents database service to manipulate Entry prices.
Inheritance
System.Object
PriceServiceDatabase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
public class PriceServiceDatabase : IPriceService
Constructors
PriceServiceDatabase(IChangeNotificationManager, ISynchronizedObjectInstanceCache, CatalogKeyEventBroadcaster, IApplicationContext, EntryIdentityResolver)
Declaration
[Obsolete("Use the constructor with CatalogItemChangeNotifier instead. Will remain at least until November 2018.")]
public PriceServiceDatabase(IChangeNotificationManager changeNotifier, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogKeyEventBroadcaster broadcaster, IApplicationContext applicationContext, EntryIdentityResolver identityResolver)
Parameters
PriceServiceDatabase(CatalogItemChangeManager, ISynchronizedObjectInstanceCache, CatalogKeyEventBroadcaster, IApplicationContext, EntryIdentityResolver)
Declaration
[Obsolete("Use the constructor with CatalogItemChangeNotifier instead. Will remain at least until November 2020.")]
public PriceServiceDatabase(CatalogItemChangeManager changeManager, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogKeyEventBroadcaster broadcaster, IApplicationContext applicationContext, EntryIdentityResolver identityResolver)
Parameters
PriceServiceDatabase(CatalogItemChangeNotifier, ISynchronizedObjectInstanceCache, CatalogKeyEventBroadcaster, IApplicationContext, EntryIdentityResolver)
Declaration
public PriceServiceDatabase(CatalogItemChangeNotifier changeNotifier, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogKeyEventBroadcaster broadcaster, IApplicationContext applicationContext, EntryIdentityResolver identityResolver)
Parameters
Fields
Declaration
public Injected<IPriceDetailService> priceDetailService
Field Value
Properties
Declaration
public static Func<string> ConnectionStringFunction { get; set; }
Property Value
Type |
Description |
System.Func<System.String> |
|
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
GetCatalogEntryPrices(CatalogKey)
Declaration
public IEnumerable<IPriceValue> GetCatalogEntryPrices(CatalogKey catalogKey)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IPriceValue> |
|
GetCatalogEntryPrices(IEnumerable<CatalogKey>)
Gets catalog entry prices from the list of catalog key.
Declaration
public IEnumerable<IPriceValue> GetCatalogEntryPrices(IEnumerable<CatalogKey> catalogKeys)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<CatalogKey> |
catalogKeys |
List of catalog key to get prices.
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IPriceValue> |
Catalog entry prices.
|
Declaration
public IPriceValue GetDefaultPrice(MarketId market, DateTime validOn, CatalogKey catalogKey, Currency currency)
Parameters
Returns
Declaration
public IEnumerable<IPriceValue> GetPrices(MarketId market, DateTime validOn, CatalogKey catalogKey, PriceFilter filter)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IPriceValue> |
|
Declaration
public IEnumerable<IPriceValue> GetPrices(MarketId market, DateTime validOn, IEnumerable<CatalogKey> catalogKeys, PriceFilter filter)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IPriceValue> |
|
Declaration
public IEnumerable<IPriceValue> GetPrices(MarketId market, DateTime validOn, IEnumerable<CatalogKeyAndQuantity> catalogKeysAndQuantities, PriceFilter filter)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IPriceValue> |
|
Declaration
public void ReplicatePriceDetailChanges(IEnumerable<CatalogKey> catalogKeys, IEnumerable<IPriceValue> priceValues)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<CatalogKey> |
catalogKeys |
|
System.Collections.Generic.IEnumerable<IPriceValue> |
priceValues |
|
SetCatalogEntryPrices(CatalogKey, IEnumerable<IPriceValue>)
Declaration
public void SetCatalogEntryPrices(CatalogKey catalogKey, IEnumerable<IPriceValue> priceValues)
Parameters
Type |
Name |
Description |
CatalogKey |
catalogKey |
|
System.Collections.Generic.IEnumerable<IPriceValue> |
priceValues |
|
SetCatalogEntryPrices(IEnumerable<CatalogKey>, IEnumerable<IPriceValue>)
Declaration
public void SetCatalogEntryPrices(IEnumerable<CatalogKey> catalogKeys, IEnumerable<IPriceValue> priceValues)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<CatalogKey> |
catalogKeys |
|
System.Collections.Generic.IEnumerable<IPriceValue> |
priceValues |
|
Implements
Extension Methods