コード例 #1
0
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="orderID">Initial value of the OrderID property.</param>
 /// <param name="clientID">Initial value of the ClientID property.</param>
 /// <param name="roomID">Initial value of the RoomID property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="endDate">Initial value of the EndDate property.</param>
 /// <param name="statusID">Initial value of the StatusID property.</param>
 public static Order CreateOrder(global::System.Int32 orderID, global::System.Int32 clientID, global::System.Int32 roomID, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Int32 statusID)
 {
     Order order = new Order();
     order.OrderID = orderID;
     order.ClientID = clientID;
     order.RoomID = roomID;
     order.StartDate = startDate;
     order.EndDate = endDate;
     order.StatusID = statusID;
     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);
 }