/// <summary> /// Create a new ToolInventory object. /// </summary> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="toolID">Initial value of the ToolID property.</param> /// <param name="outQuantity">Initial value of the OutQuantity property.</param> /// <param name="scrapQuantity">Initial value of the ScrapQuantity property.</param> /// <param name="repairingQuantity">Initial value of the RepairingQuantity property.</param> public static ToolInventory CreateToolInventory(global::System.Decimal quantity, global::System.Decimal unitPrice, global::System.Int32 toolID, global::System.Decimal outQuantity, global::System.Decimal scrapQuantity, global::System.Decimal repairingQuantity) { ToolInventory toolInventory = new ToolInventory(); toolInventory.Quantity = quantity; toolInventory.UnitPrice = unitPrice; toolInventory.ToolID = toolID; toolInventory.OutQuantity = outQuantity; toolInventory.ScrapQuantity = scrapQuantity; toolInventory.RepairingQuantity = repairingQuantity; return toolInventory; }
/// <summary> /// Deprecated Method for adding a new object to the ToolInventories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToToolInventories(ToolInventory toolInventory) { base.AddObject("ToolInventories", toolInventory); }