2using System.Xml.Serialization;
13[XmlType(TypeName =
"item")]
16 private int _billOfMaterialsLevel;
44 int billOfMaterialsLevel)
59 [XmlAttribute(
"billOfMaterialsLevel")]
62 get => _billOfMaterialsLevel;
68 throw new ArgumentOutOfRangeException(
71 "The bill-of-materials level cannot be negative.");
76 ref _billOfMaterialsLevel,
int Id
Gets or sets the numerical identifier of the entity.
IdentifiedEntity()
Initializes a new instance of the IdentifiedEntity class.
string Name
Gets or sets the entity name.
Item()
Initializes a new instance of the Item class.
int BillOfMaterialsLevel
Gets or sets the item's bill-of-materials level.
Item(int id, string name, int billOfMaterialsLevel)
Initializes an item with its identifier, name and bill-of-materials level.