Class RecordState

Encapsulates an inventory record and a set of changes.

Inheritance
System.Object
RecordState
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.InventoryService.BusinessLogic
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class RecordState

Constructors

RecordState(InventoryRecord)

Creates a new instance of RecordState.

Declaration
public RecordState(InventoryRecord record)
Parameters
Type Name Description
InventoryRecord record

The original InventoryRecord.

Properties

ChangedRecord

Gets the InventoryRecord with the changes applied.

Declaration
public InventoryRecord ChangedRecord { get; }
Property Value
Type Description
InventoryRecord

Changes

Gets the changes that have been added to the record state.

Declaration
public InventoryChange Changes { get; }
Property Value
Type Description
InventoryChange

OriginalRecord

Gets the original, unchanged InventoryRecord.

Declaration
public InventoryRecord OriginalRecord { get; }
Property Value
Type Description
InventoryRecord

Methods

AddChange(InventoryChange)

Adds a change to the RecordState.

Declaration
public void AddChange(InventoryChange change)
Parameters
Type Name Description
InventoryChange change

The InventoryChange to apply.

RemoveChange(InventoryChange)

Removes a change from the RecordState.

Declaration
public void RemoveChange(InventoryChange change)
Parameters
Type Name Description
InventoryChange change

The InventoryChange to remove.