/// <summary> /// Create a new PurchaseOrder object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="purchaseOrderNumber">Initial value of the PurchaseOrderNumber property.</param> /// <param name="purchaseOrderDate">Initial value of the PurchaseOrderDate property.</param> /// <param name="purchaseOrderStatus">Initial value of the PurchaseOrderStatus property.</param> /// <param name="purchaseOrder_Supplier">Initial value of the PurchaseOrder_Supplier property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static PurchaseOrder CreatePurchaseOrder(global::System.Int32 id, global::System.String purchaseOrderNumber, global::System.DateTime purchaseOrderDate, global::System.Boolean purchaseOrderStatus, global::System.Int32 purchaseOrder_Supplier, global::System.Byte[] rowVersion) { PurchaseOrder purchaseOrder = new PurchaseOrder(); purchaseOrder.Id = id; purchaseOrder.PurchaseOrderNumber = purchaseOrderNumber; purchaseOrder.PurchaseOrderDate = purchaseOrderDate; purchaseOrder.PurchaseOrderStatus = purchaseOrderStatus; purchaseOrder.PurchaseOrder_Supplier = purchaseOrder_Supplier; purchaseOrder.RowVersion = rowVersion; return purchaseOrder; }
/// <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="purchaseOrderNumber">Initial value of the PurchaseOrderNumber property.</param> /// <param name="datePurchaseOrderPlaced">Initial value of the DatePurchaseOrderPlaced property.</param> /// <param name="datePurchaseOrderRequired">Initial value of the DatePurchaseOrderRequired property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static PurchaseOrder CreatePurchaseOrder(global::System.Int32 id, global::System.String purchaseOrderNumber, global::System.DateTime datePurchaseOrderPlaced, global::System.DateTime datePurchaseOrderRequired, global::System.Byte[] rowVersion) { PurchaseOrder purchaseOrder = new PurchaseOrder(); purchaseOrder.Id = id; purchaseOrder.PurchaseOrderNumber = purchaseOrderNumber; purchaseOrder.DatePurchaseOrderPlaced = datePurchaseOrderPlaced; purchaseOrder.DatePurchaseOrderRequired = datePurchaseOrderRequired; purchaseOrder.RowVersion = rowVersion; return purchaseOrder; }