예제 #1
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);
 }
예제 #2
0
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="creationDate">Initial value of the CreationDate property.</param>
 /// <param name="companyId">Initial value of the CompanyId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="supplierId">Initial value of the SupplierId property.</param>
 /// <param name="statusId">Initial value of the StatusId property.</param>
 /// <param name="orderNumber">Initial value of the OrderNumber property.</param>
 /// <param name="wasAddedToInventory">Initial value of the WasAddedToInventory property.</param>
 /// <param name="isFutureOrder">Initial value of the IsFutureOrder property.</param>
 /// <param name="isOrderForExistingInvoice">Initial value of the IsOrderForExistingInvoice property.</param>
 public static Order CreateOrder(global::System.Int32 id, global::System.DateTime creationDate, global::System.Int32 companyId, global::System.Int32 userId, global::System.Int32 supplierId, global::System.Int32 statusId, global::System.Int32 orderNumber, global::System.Boolean wasAddedToInventory, global::System.Boolean isFutureOrder, global::System.Boolean isOrderForExistingInvoice)
 {
     Order order = new Order();
     order.Id = id;
     order.CreationDate = creationDate;
     order.CompanyId = companyId;
     order.UserId = userId;
     order.SupplierId = supplierId;
     order.StatusId = statusId;
     order.OrderNumber = orderNumber;
     order.WasAddedToInventory = wasAddedToInventory;
     order.IsFutureOrder = isFutureOrder;
     order.IsOrderForExistingInvoice = isOrderForExistingInvoice;
     return order;
 }