London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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: 13.30.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.