/// <summary> /// Create a new SparePart object. /// </summary> /// <param name="itemID">Initial value of the ItemID property.</param> /// <param name="itemCode">Initial value of the ItemCode property.</param> /// <param name="itemName">Initial value of the ItemName property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> /// <param name="minorCategory">Initial value of the MinorCategory property.</param> public static SparePart CreateSparePart(global::System.Int64 itemID, global::System.String itemCode, global::System.String itemName, global::System.Boolean isActive, global::System.String minorCategory) { SparePart sparePart = new SparePart(); sparePart.ItemID = itemID; sparePart.ItemCode = itemCode; sparePart.ItemName = itemName; sparePart.IsActive = isActive; sparePart.MinorCategory = minorCategory; return sparePart; }
/// <summary> /// Deprecated Method for adding a new object to the SpareParts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSpareParts(SparePart sparePart) { base.AddObject("SpareParts", sparePart); }