/// <summary> /// Deprecated Method for adding a new object to the OrderShortTerms EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrderShortTerms(OrderShortTerm orderShortTerm) { base.AddObject("OrderShortTerms", orderShortTerm); }
/// <summary> /// Create a new OrderShortTerm object. /// </summary> /// <param name="orderShortTermID">Initial value of the OrderShortTermID property.</param> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="shortTermAssetID">Initial value of the ShortTermAssetID property.</param> /// <param name="quantityOrdered">Initial value of the QuantityOrdered property.</param> public static OrderShortTerm CreateOrderShortTerm(global::System.Int32 orderShortTermID, global::System.Int16 orderID, global::System.Int16 shortTermAssetID, global::System.Byte quantityOrdered) { OrderShortTerm orderShortTerm = new OrderShortTerm(); orderShortTerm.OrderShortTermID = orderShortTermID; orderShortTerm.OrderID = orderID; orderShortTerm.ShortTermAssetID = shortTermAssetID; orderShortTerm.QuantityOrdered = quantityOrdered; return orderShortTerm; }