/// <summary> /// Deprecated Method for adding a new object to the PurchaseOrders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPurchaseOrders(PurchaseOrder purchaseOrder) { base.AddObject("PurchaseOrders", purchaseOrder); }
/// <summary> /// Create a new PurchaseOrder object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="po_stationery">Initial value of the po_stationery property.</param> /// <param name="po_quantity_in_hand">Initial value of the po_quantity_in_hand property.</param> /// <param name="po_reorder_level">Initial value of the po_reorder_level property.</param> /// <param name="po_reordered_quantity">Initial value of the po_reordered_quantity property.</param> /// <param name="po_supplier">Initial value of the po_supplier property.</param> /// <param name="po_reorder_date">Initial value of the po_reorder_date property.</param> /// <param name="po_status">Initial value of the po_status property.</param> public static PurchaseOrder CreatePurchaseOrder(global::System.Int32 id, global::System.Int32 po_stationery, global::System.Int32 po_quantity_in_hand, global::System.Int32 po_reorder_level, global::System.Int32 po_reordered_quantity, global::System.Int32 po_supplier, global::System.DateTime po_reorder_date, global::System.Int32 po_status) { PurchaseOrder purchaseOrder = new PurchaseOrder(); purchaseOrder.id = id; purchaseOrder.po_stationery = po_stationery; purchaseOrder.po_quantity_in_hand = po_quantity_in_hand; purchaseOrder.po_reorder_level = po_reorder_level; purchaseOrder.po_reordered_quantity = po_reordered_quantity; purchaseOrder.po_supplier = po_supplier; purchaseOrder.po_reorder_date = po_reorder_date; purchaseOrder.po_status = po_status; return purchaseOrder; }