示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PurchaseOrders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPurchaseOrders(PurchaseOrder purchaseOrder)
 {
     base.AddObject("PurchaseOrders", purchaseOrder);
 }
示例#2
0
 /// <summary>
 /// Create a new PurchaseOrder object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="poNumber">Initial value of the PoNumber property.</param>
 /// <param name="requestId">Initial value of the RequestId property.</param>
 /// <param name="vendorId">Initial value of the VendorId property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="is_approved">Initial value of the is_approved property.</param>
 public static PurchaseOrder CreatePurchaseOrder(global::System.Guid id, global::System.Int32 poNumber, global::System.Guid requestId, global::System.Int32 vendorId, global::System.DateTime dateCreated, global::System.Boolean is_approved)
 {
     PurchaseOrder purchaseOrder = new PurchaseOrder();
     purchaseOrder.Id = id;
     purchaseOrder.PoNumber = poNumber;
     purchaseOrder.RequestId = requestId;
     purchaseOrder.VendorId = vendorId;
     purchaseOrder.DateCreated = dateCreated;
     purchaseOrder.is_approved = is_approved;
     return purchaseOrder;
 }