Class PriceDetailExtensions
Inheritance
System.Object
    PriceDetailExtensions
  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()
    
  Namespace: Mediachase.Commerce.Pricing
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public static class PriceDetailExtensions
  Methods
Delete(IPriceDetailService, Int64)
Deletes the specified price value if the price service is editable.
Declaration
public static void Delete(this IPriceDetailService service, long priceValueId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IPriceDetailService | service | The price detail service to access, manipulate pricing information.  | 
      
| System.Int64 | priceValueId | The identifiers of the price value to delete.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.InvalidOperationException | The IPriceDetailService is read only.  | 
      
Save(IPriceDetailService, IPriceDetailValue)
Updates or inserts the specified price value if the price service is editable.
Declaration
public static IPriceDetailValue Save(this IPriceDetailService service, IPriceDetailValue priceValue)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IPriceDetailService | service | The price detail service to access, manipulate pricing information.  | 
      
| IPriceDetailValue | priceValue | The price value to save in the backing store.  | 
      
Returns
| Type | Description | 
|---|---|
| IPriceDetailValue | The saved value.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.InvalidOperationException | The IPriceDetailService is read only.  |