コード例 #1
0
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 public static Order CreateOrder(global::System.Int32 id, global::System.DateTime date, global::System.Int32 amount, global::System.String description, global::System.Int32 customerId)
 {
     Order order = new Order();
     order.Id = id;
     order.Date = date;
     order.Amount = amount;
     order.Description = description;
     order.CustomerId = customerId;
     return order;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrders(Order order)
 {
     base.AddObject("Orders", order);
 }