/// <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="cost">Initial value of the Cost property.</param> /// <param name="isBuy">Initial value of the IsBuy property.</param> /// <param name="isDiscardable">Initial value of the IsDiscardable property.</param> /// <param name="isMarged">Initial value of the IsMarged property.</param> /// <param name="price">Initial value of the Price property.</param> /// <param name="submissionDateInternal">Initial value of the SubmissionDateInternal property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> public static Order CreateOrder(global::System.Int64 id, global::System.Double cost, global::System.Boolean isBuy, global::System.Boolean isDiscardable, global::System.Boolean isMarged, global::System.Double price, global::System.String submissionDateInternal, global::System.Int64 quantity) { Order order = new Order(); order.Id = id; order.Cost = cost; order.IsBuy = isBuy; order.IsDiscardable = isDiscardable; order.IsMarged = isMarged; order.Price = price; order.SubmissionDateInternal = submissionDateInternal; order.Quantity = quantity; return order; }