Child Product Model - RyanMarinoff/ISW-Prism GitHub Wiki
Child products are representative of the products that are within the physical inventory. Due to not having direct access to the internal inventory data, stock status will be represented here. Room for additional information once access is gained for improvement or change.
Constructor
To create a ChildProduct, you must have the associated ParentProdcut created. All relevant data is copied to the appropriate fields.
Fields
| Description | Type | Field | CSV Name |
|---|---|---|---|
| Number of shoes in stock | [int] | StockStatus | stockstatus |
Overloads
There are a number of overloads.
ToString
Returns the following string for the product:
`ID: [ID] - [Name]
GetHashCode
Returns the hash code for the ID.
Equals and comparison operators
Compares the ID of the ChildProduct.