/// <summary> /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrders(Order order) { base.AddObject("Orders", order); }
/// <summary> /// Create a new Order object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="orderDate">Initial value of the OrderDate property.</param> /// <param name="quotationDate">Initial value of the QuotationDate property.</param> /// <param name="isQuoted">Initial value of the IsQuoted property.</param> /// <param name="approvalDate">Initial value of the ApprovalDate property.</param> /// <param name="isApproved">Initial value of the IsApproved property.</param> /// <param name="fulfilmentDate">Initial value of the FulfilmentDate property.</param> /// <param name="isFulfilled">Initial value of the IsFulfilled property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="pivotExchangeRate">Initial value of the PivotExchangeRate property.</param> /// <param name="globalPivotExchangeRate">Initial value of the GlobalPivotExchangeRate property.</param> /// <param name="adminFee">Initial value of the AdminFee property.</param> /// <param name="estimatedTakeoffTime">Initial value of the EstimatedTakeoffTime property.</param> /// <param name="estimatedLandingTime">Initial value of the EstimatedLandingTime property.</param> /// <param name="contractId">Initial value of the ContractId property.</param> /// <param name="buyerId">Initial value of the BuyerId property.</param> /// <param name="sellerId">Initial value of the SellerId property.</param> public static Order CreateOrder(global::System.Int32 id, global::System.DateTime orderDate, global::System.DateTime quotationDate, global::System.Boolean isQuoted, global::System.DateTime approvalDate, global::System.Boolean isApproved, global::System.DateTime fulfilmentDate, global::System.Boolean isFulfilled, global::System.Int32 status, global::System.Double amount, global::System.Double pivotExchangeRate, global::System.Double globalPivotExchangeRate, global::System.Double adminFee, global::System.DateTime estimatedTakeoffTime, global::System.DateTime estimatedLandingTime, global::System.Int32 contractId, global::System.Int32 buyerId, global::System.Int32 sellerId) { Order order = new Order(); order.Id = id; order.OrderDate = orderDate; order.QuotationDate = quotationDate; order.IsQuoted = isQuoted; order.ApprovalDate = approvalDate; order.IsApproved = isApproved; order.FulfilmentDate = fulfilmentDate; order.IsFulfilled = isFulfilled; order.Status = status; order.Amount = amount; order.PivotExchangeRate = pivotExchangeRate; order.GlobalPivotExchangeRate = globalPivotExchangeRate; order.AdminFee = adminFee; order.EstimatedTakeoffTime = estimatedTakeoffTime; order.EstimatedLandingTime = estimatedLandingTime; order.ContractId = contractId; order.BuyerId = buyerId; order.SellerId = sellerId; return order; }