コード例 #1
0
 /// <summary>
 /// Create a new OrderLine object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 public static OrderLine CreateOrderLine(global::System.Int32 id, global::System.String quantity)
 {
     OrderLine orderLine = new OrderLine();
     orderLine.Id = id;
     orderLine.Quantity = quantity;
     return orderLine;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the OrderLines EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderLines(OrderLine orderLine)
 {
     base.AddObject("OrderLines", orderLine);
 }