예제 #1
0
 /// <summary>
 /// Create a new PurchaseOrderDetail object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="requireDate">Initial value of the RequireDate property.</param>
 /// <param name="purchaseOrderDetail_Product">Initial value of the PurchaseOrderDetail_Product property.</param>
 /// <param name="purchaseOrderDetail_Location">Initial value of the PurchaseOrderDetail_Location property.</param>
 /// <param name="requireQuantity">Initial value of the RequireQuantity property.</param>
 /// <param name="requireTotalCost">Initial value of the RequireTotalCost property.</param>
 /// <param name="isReceiveComplete">Initial value of the IsReceiveComplete property.</param>
 /// <param name="purchaseOrderDetail_PurchaseOrder">Initial value of the PurchaseOrderDetail_PurchaseOrder property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static PurchaseOrderDetail CreatePurchaseOrderDetail(global::System.Int32 id, global::System.DateTime requireDate, global::System.Int32 purchaseOrderDetail_Product, global::System.Int32 purchaseOrderDetail_Location, global::System.Double requireQuantity, global::System.Decimal requireTotalCost, global::System.Boolean isReceiveComplete, global::System.Int32 purchaseOrderDetail_PurchaseOrder, global::System.Byte[] rowVersion)
 {
     PurchaseOrderDetail purchaseOrderDetail = new PurchaseOrderDetail();
     purchaseOrderDetail.Id = id;
     purchaseOrderDetail.RequireDate = requireDate;
     purchaseOrderDetail.PurchaseOrderDetail_Product = purchaseOrderDetail_Product;
     purchaseOrderDetail.PurchaseOrderDetail_Location = purchaseOrderDetail_Location;
     purchaseOrderDetail.RequireQuantity = requireQuantity;
     purchaseOrderDetail.RequireTotalCost = requireTotalCost;
     purchaseOrderDetail.IsReceiveComplete = isReceiveComplete;
     purchaseOrderDetail.PurchaseOrderDetail_PurchaseOrder = purchaseOrderDetail_PurchaseOrder;
     purchaseOrderDetail.RowVersion = rowVersion;
     return purchaseOrderDetail;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PurchaseOrderDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPurchaseOrderDetails(PurchaseOrderDetail purchaseOrderDetail)
 {
     base.AddObject("PurchaseOrderDetails", purchaseOrderDetail);
 }
 /// <summary>
 /// Create a new PurchaseOrderDetail object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="purchaseOrderDetails_PurchaseOrder">Initial value of the PurchaseOrderDetails_PurchaseOrder property.</param>
 /// <param name="purchaseOrderDetails_Product">Initial value of the PurchaseOrderDetails_Product property.</param>
 /// <param name="unitsOrdered">Initial value of the UnitsOrdered property.</param>
 /// <param name="discount">Initial value of the Discount property.</param>
 /// <param name="unitPricePaid">Initial value of the UnitPricePaid property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static PurchaseOrderDetail CreatePurchaseOrderDetail(global::System.Int32 id, global::System.Int32 purchaseOrderDetails_PurchaseOrder, global::System.Int32 purchaseOrderDetails_Product, global::System.Int32 unitsOrdered, global::System.Decimal discount, global::System.Decimal unitPricePaid, global::System.Byte[] rowVersion)
 {
     PurchaseOrderDetail purchaseOrderDetail = new PurchaseOrderDetail();
     purchaseOrderDetail.Id = id;
     purchaseOrderDetail.PurchaseOrderDetails_PurchaseOrder = purchaseOrderDetails_PurchaseOrder;
     purchaseOrderDetail.PurchaseOrderDetails_Product = purchaseOrderDetails_Product;
     purchaseOrderDetail.UnitsOrdered = unitsOrdered;
     purchaseOrderDetail.Discount = discount;
     purchaseOrderDetail.UnitPricePaid = unitPricePaid;
     purchaseOrderDetail.RowVersion = rowVersion;
     return purchaseOrderDetail;
 }